aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/metamask-controller.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-07-22 01:45:32 +0800
committerGitHub <noreply@github.com>2016-07-22 01:45:32 +0800
commit6658bea8d444281491718f8eee7bc3ae42f91b69 (patch)
tree1bfc13870221528af34df95e5f64f0d73b75aa16 /app/scripts/metamask-controller.js
parentcdd7e40545af8e62fc586f8da120e8d05ca90653 (diff)
downloadtangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.tar
tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.tar.gz
tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.tar.bz2
tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.tar.lz
tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.tar.xz
tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.tar.zst
tangerine-wallet-browser-6658bea8d444281491718f8eee7bc3ae42f91b69.zip
Implement some cross-browser practices (#473)
* Add mozilla plugin key to manifest * Move all chrome references into platform-checking module Addresses #453 * Add chrome global back to linter blacklist * Add tests
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r--app/scripts/metamask-controller.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 63970799d..17af4cc29 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -6,6 +6,7 @@ const messageManager = require('./lib/message-manager')
const HostStore = require('./lib/remote-store.js').HostStore
const Web3 = require('web3')
const ConfigManager = require('./lib/config-manager')
+const extension = require('./lib/extension')
module.exports = class MetamaskController {
@@ -239,19 +240,19 @@ module.exports = class MetamaskController {
// called from popup
setRpcTarget (rpcTarget) {
this.configManager.setRpcTarget(rpcTarget)
- chrome.runtime.reload()
+ extension.runtime.reload()
this.idStore.getNetwork()
}
setProviderType (type) {
this.configManager.setProviderType(type)
- chrome.runtime.reload()
+ extension.runtime.reload()
this.idStore.getNetwork()
}
useEtherscanProvider () {
this.configManager.useEtherscanProvider()
- chrome.runtime.reload()
+ extension.runtime.reload()
}
}