aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <FooSoft@users.noreply.github.com>2019-09-15 11:34:34 -0700
committerGitHub <noreply@github.com>2019-09-15 11:34:34 -0700
commit58778612778df944628b4697dc51caccbeb22f79 (patch)
tree9310c68c2a8a5604a0ee6ca78ecfaa937f165abe /ext/bg/js/util.js
parente4fa658295e2149c63a51d623773bf348f21f0c5 (diff)
parent6358b655aef94279133550c93a944dbe785cee44 (diff)
Merge pull request #213 from toasted-nutbread/options-isolation
Isolate options objects created via settings.js
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;