From 35216332bff4f654ce5ab3952369c012e2565fd9 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 20 Dec 2019 23:21:29 -0500 Subject: Replace window.yomichan_backend with window.yomichanBackend --- ext/bg/js/api.js | 2 +- ext/bg/js/backend.js | 4 ++-- ext/bg/js/util.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/bg/js') diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index d8200caf..9f37ccd8 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -41,7 +41,7 @@ function _apiInvoke(action, params={}) { reject(new Error(`${message} (${JSON.stringify(data)})`)); } }; - const backend = window.yomichan_backend; + const backend = window.yomichanBackend; backend.onMessage({action, params}, null, callback); } catch (e) { reject(e); diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index b2872c3f..7b6498e1 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -702,5 +702,5 @@ Backend._commandHandlers = new Map([ ['toggle', (self, ...args) => self._onCommandToggle(...args)] ]); -window.yomichan_backend = new Backend(); -window.yomichan_backend.prepare(); +window.yomichanBackend = new Backend(); +window.yomichanBackend.prepare(); diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index 42480c37..c88c2768 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -97,7 +97,7 @@ function utilStringHashCode(string) { } function utilBackend() { - return chrome.extension.getBackgroundPage().yomichan_backend; + return chrome.extension.getBackgroundPage().yomichanBackend; } async function utilAnkiGetModelNames() { -- cgit v1.2.3