From 6367894df0ea54cd6079abd93e9e1f261482185a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 17 Aug 2017 19:11:23 -0700 Subject: fixing broken firefox object behavior --- ext/bg/js/api.js | 4 ++-- 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'}); -- cgit v1.2.3