From 389a5456063d68c8ef0c7fe721eb183b685157c8 Mon Sep 17 00:00:00 2001 From: AndyLnd Date: Tue, 6 Feb 2018 18:07:16 +0100 Subject: [PATCH] corrected api assignment --- src/scripts/utils/ext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/utils/ext.js b/src/scripts/utils/ext.js index a609883..ee129bc 100644 --- a/src/scripts/utils/ext.js +++ b/src/scripts/utils/ext.js @@ -47,7 +47,7 @@ function Extension () { } } catch (e) {} try { - _this.api = browser.extension[api] + _this[api] = browser.extension[api] } catch (e) {} }) @@ -65,4 +65,4 @@ function Extension () { } -module.exports = new Extension(); \ No newline at end of file +module.exports = new Extension();