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.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/scripts/lib/extension-instance.js b/app/scripts/lib/extension-instance.js
index eb3b8a1e9..1098130e3 100644
--- a/app/scripts/lib/extension-instance.js
+++ b/app/scripts/lib/extension-instance.js
@@ -42,6 +42,12 @@ function Extension () {
} catch (e) {}
try {
+ if (browser[api]) {
+ _this[api] = browser[api]
+ }
+ } catch (e) {}
+
+ try {
_this.api = browser.extension[api]
} catch (e) {}