summaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-14 16:21:41 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-14 16:21:41 -0400
commit6358b655aef94279133550c93a944dbe785cee44 (patch)
tree89007c97348c34416fef0da5e253ffc3663068ed /ext/bg/js/util.js
parentec816e676771b53f6eb2c9c68e1742830c9fd194 (diff)
Isolate options objects created via settings.js
Prevents dead objects created by different windows.
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 79229229..73a8396f 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -26,6 +26,11 @@ function utilIsolate(data) {
return JSON.parse(JSON.stringify(data));
}
+function utilBackgroundIsolate(data) {
+ const backgroundPage = chrome.extension.getBackgroundPage();
+ return backgroundPage.utilIsolate(data);
+}
+
function utilSetEqual(setA, setB) {
if (setA.size !== setB.size) {
return false;