aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-17 06:58:11 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-17 06:58:11 +0800
commit5d90167bcc8af12c8cbd9dd64174352f758c8409 (patch)
tree2bfcd664886da2a0b5f168e1b123a451b1af3864 /app
parent825bb4494b7c69d174eb4add1821cd8bed178b81 (diff)
downloadtangerine-wallet-browser-5d90167bcc8af12c8cbd9dd64174352f758c8409.tar
tangerine-wallet-browser-5d90167bcc8af12c8cbd9dd64174352f758c8409.tar.gz
tangerine-wallet-browser-5d90167bcc8af12c8cbd9dd64174352f758c8409.tar.bz2
tangerine-wallet-browser-5d90167bcc8af12c8cbd9dd64174352f758c8409.tar.lz
tangerine-wallet-browser-5d90167bcc8af12c8cbd9dd64174352f758c8409.tar.xz
tangerine-wallet-browser-5d90167bcc8af12c8cbd9dd64174352f758c8409.tar.zst
tangerine-wallet-browser-5d90167bcc8af12c8cbd9dd64174352f758c8409.zip
Expose disclaimer consent to dnode API
Diffstat (limited to 'app')
-rw-r--r--app/scripts/background.js10
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)