From a05a05c4f49d97f44dc3e1599906047c4a346512 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Mon, 2 Mar 2020 12:01:53 +0200 Subject: fix content script entry point Yomichan prepare Covers Popup stuff in addition to Frontend --- ext/fg/js/frontend-initialize.js | 2 ++ ext/fg/js/frontend.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/fg/js/frontend-initialize.js b/ext/fg/js/frontend-initialize.js index 54b874f2..bbb789cc 100644 --- a/ext/fg/js/frontend-initialize.js +++ b/ext/fg/js/frontend-initialize.js @@ -19,6 +19,8 @@ /*global PopupProxyHost, PopupProxy, Frontend*/ async function main() { + await yomichan.prepare(); + const data = window.frontendInitializationData || {}; const {id, depth=0, parentFrameId, ignoreNodes, url, proxy=false} = data; diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 203366c3..929ab56a 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -52,7 +52,6 @@ class Frontend extends TextScanner { async prepare() { try { - await yomichan.prepare(); await this.updateOptions(); const {zoomFactor} = await apiGetZoom(); this._pageZoomFactor = zoomFactor; -- cgit v1.2.3