diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-08-17 19:11:23 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-08-17 19:11:23 -0700 |
commit | 6367894df0ea54cd6079abd93e9e1f261482185a (patch) | |
tree | d8c442f4a824a3f441a26e4e1e2fc6d02f0c9f93 | |
parent | 0c650dac828b7ab9641396268a66d3a7410d4000 (diff) |
fixing broken firefox object behavior
-rw-r--r-- | ext/bg/js/api.js | 4 | ||||
-rw-r--r-- | ext/bg/js/backend.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index 4b6729ad..2afe82a0 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -18,11 +18,11 @@ async function apiOptionsSet(options) { - utilBackend().onOptionsUpdated(utilIsolate(options)); + utilBackend().onOptionsUpdated(options); } async function apiOptionsGet() { - return utilIsolate(utilBackend().options); + return utilBackend().options; } async function apiTermsFind(text) { diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 9602d385..6b3acaa9 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -37,7 +37,7 @@ class Backend { } onOptionsUpdated(options) { - this.options = options; + this.options = utilIsolate(options); if (!options.general.enable) { chrome.browserAction.setBadgeBackgroundColor({color: '#555555'}); |