aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/util.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index fa31b0d8..a0f31653 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -15,33 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-function utilFunctionIsolate(func) {
- return function isolatedFunction(...args) {
- try {
- args = args.map((v) => clone(v));
- return func.call(this, ...args);
- } catch (e) {
- try {
- String(func);
- } catch (e2) {
- // Dead object
- return;
- }
- throw e;
- }
- };
-}
-
function utilBackgroundIsolate(data) {
const backgroundPage = chrome.extension.getBackgroundPage();
return backgroundPage.clone(data);
}
-function utilBackgroundFunctionIsolate(func) {
- const backgroundPage = chrome.extension.getBackgroundPage();
- return backgroundPage.utilFunctionIsolate(func);
-}
-
function utilBackend() {
const backend = chrome.extension.getBackgroundPage().yomichanBackend;
if (!backend.isPrepared()) {