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

Loading…
Cancel
Save