aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/api.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-15 21:51:48 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-15 21:51:48 -0700
commit84d2204d966342fa03635b4b8a860bb48a418bc0 (patch)
treeb47f0f45453f5a488fed6bebc3da54e384efb93b /ext/bg/js/api.js
parent8ed3ca6fd44d24aff9ea41c65821c6e094024d4e (diff)
firefox fixes
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r--ext/bg/js/api.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index 8b4c3896..4b6729ad 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -18,15 +18,11 @@
async function apiOptionsSet(options) {
- // In Firefox, setting options from the options UI somehow carries references
- // to the DOM across to the background page, causing the options object to
- // become a "DeadObject" after the options page is closed. The workaround used
- // here is to create a deep copy of the options object.
- utilBackend().onOptionsUpdated(JSON.parse(JSON.stringify(options)));
+ utilBackend().onOptionsUpdated(utilIsolate(options));
}
async function apiOptionsGet() {
- return utilBackend().options;
+ return utilIsolate(utilBackend().options);
}
async function apiTermsFind(text) {