Replace window.yomichan_backend with window.yomichanBackend

This commit is contained in:
toasted-nutbread 2019-12-20 23:21:29 -05:00
parent f8365b8092
commit 35216332bf
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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();

View File

@ -97,7 +97,7 @@ function utilStringHashCode(string) {
}
function utilBackend() {
return chrome.extension.getBackgroundPage().yomichan_backend;
return chrome.extension.getBackgroundPage().yomichanBackend;
}
async function utilAnkiGetModelNames() {