aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/api.js4
-rw-r--r--ext/bg/js/backend.js2
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'});