diff options
Expose disclaimer consent to dnode API
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index f64209ecc..1098efe87 100644 --- a/app/scripts/background.js +++ b/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) |