diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-14 16:21:41 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-14 16:21:41 -0400 |
commit | 6358b655aef94279133550c93a944dbe785cee44 (patch) | |
tree | 89007c97348c34416fef0da5e253ffc3663068ed /ext/bg/js/util.js | |
parent | ec816e676771b53f6eb2c9c68e1742830c9fd194 (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.js | 5 |
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; |