fix content script entry point Yomichan prepare

Covers Popup stuff in addition to Frontend
This commit is contained in:
siikamiika 2020-03-02 12:01:53 +02:00
parent 56b2f2c853
commit a05a05c4f4
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -52,7 +52,6 @@ class Frontend extends TextScanner {
async prepare() {
try {
await yomichan.prepare();
await this.updateOptions();
const {zoomFactor} = await apiGetZoom();
this._pageZoomFactor = zoomFactor;