Expose disclaimer consent to dnode API

feature/default_network_editable
Dan Finlay 9 years ago
parent 825bb4494b
commit 5d90167bcc
  1. 10
      app/scripts/background.js

@ -188,6 +188,7 @@ function setupControllerConnection(stream){
setRpcTarget: setRpcTarget, setRpcTarget: setRpcTarget,
setProviderType: setProviderType, setProviderType: setProviderType,
useEtherscanProvider: useEtherscanProvider, useEtherscanProvider: useEtherscanProvider,
agreeToDisclaimer: agreeToDisclaimer,
// forward directly to idStore // forward directly to idStore
createNewVault: idStore.createNewVault.bind(idStore), createNewVault: idStore.createNewVault.bind(idStore),
recoverFromSeed: idStore.recoverFromSeed.bind(idStore), recoverFromSeed: idStore.recoverFromSeed.bind(idStore),
@ -295,6 +296,15 @@ function addUnconfirmedMsg(msgParams, cb){
// config // config
// //
function agreeToDisclaimer(cb) {
try {
configManager.setConfirmed(true)
cb()
} catch (e) {
cb(e)
}
}
// called from popup // called from popup
function setRpcTarget(rpcTarget){ function setRpcTarget(rpcTarget){
configManager.setRpcTarget(rpcTarget) configManager.setRpcTarget(rpcTarget)

Loading…
Cancel
Save