summaryrefslogtreecommitdiff
path: root/ext/bg/js/util.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/util.js
parent8ed3ca6fd44d24aff9ea41c65821c6e094024d4e (diff)
firefox fixes
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 11ec23eb..a92fd0bc 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -22,6 +22,10 @@ function utilAsync(func) {
};
}
+function utilIsolate(data) {
+ return JSON.parse(JSON.stringify(data));
+}
+
function utilBackend() {
return chrome.extension.getBackgroundPage().yomichan_backend;
}