aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-30 08:33:18 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-30 08:33:18 +0800
commit1b617402ecf882701a11bae68c8e06dd6de8b928 (patch)
tree4e6c38eb4c1ca5a1002b8e4f3d3296310435d9cc /app
parentb36b7603384309a7ef714e269818775bab02e52c (diff)
downloadtangerine-wallet-browser-1b617402ecf882701a11bae68c8e06dd6de8b928.tar
tangerine-wallet-browser-1b617402ecf882701a11bae68c8e06dd6de8b928.tar.gz
tangerine-wallet-browser-1b617402ecf882701a11bae68c8e06dd6de8b928.tar.bz2
tangerine-wallet-browser-1b617402ecf882701a11bae68c8e06dd6de8b928.tar.lz
tangerine-wallet-browser-1b617402ecf882701a11bae68c8e06dd6de8b928.tar.xz
tangerine-wallet-browser-1b617402ecf882701a11bae68c8e06dd6de8b928.tar.zst
tangerine-wallet-browser-1b617402ecf882701a11bae68c8e06dd6de8b928.zip
Add extra edge compatibility
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/extension-instance.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/app/scripts/lib/extension-instance.js b/app/scripts/lib/extension-instance.js
index 1098130e3..628b62e3f 100644
--- a/app/scripts/lib/extension-instance.js
+++ b/app/scripts/lib/extension-instance.js
@@ -46,12 +46,23 @@ function Extension () {
_this[api] = browser[api]
}
} catch (e) {}
-
try {
_this.api = browser.extension[api]
} catch (e) {}
-
})
+
+ try {
+ if (browser && browser.runtime) {
+ this.runtime = browser.runtime
+ }
+ } catch (e) {}
+
+ try {
+ if (browser && browser.browserAction) {
+ this.browserAction = browser.browserAction
+ }
+ } catch (e) {}
+
}
module.exports = Extension