aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/extension-instance.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/extension-instance.js')
-rw-r--r--app/scripts/lib/extension-instance.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/scripts/lib/extension-instance.js b/app/scripts/lib/extension-instance.js
index eeab6c6d0..e0e7c948b 100644
--- a/app/scripts/lib/extension-instance.js
+++ b/app/scripts/lib/extension-instance.js
@@ -24,14 +24,9 @@ const apis = [
function Extension () {
const _this = this
- let global = window
-
- if (window.chrome) {
- global = window.chrome
- }
apis.forEach(function (api) {
- _this[api] = global[api]
+ _this[api] = chrome ? chrome[api] : window[api] || browser.extension[api]
})
}