fix content script entry point Yomichan prepare
Covers Popup stuff in addition to Frontend
This commit is contained in:
parent
56b2f2c853
commit
a05a05c4f4
@ -19,6 +19,8 @@
|
|||||||
/*global PopupProxyHost, PopupProxy, Frontend*/
|
/*global PopupProxyHost, PopupProxy, Frontend*/
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
await yomichan.prepare();
|
||||||
|
|
||||||
const data = window.frontendInitializationData || {};
|
const data = window.frontendInitializationData || {};
|
||||||
const {id, depth=0, parentFrameId, ignoreNodes, url, proxy=false} = data;
|
const {id, depth=0, parentFrameId, ignoreNodes, url, proxy=false} = data;
|
||||||
|
|
||||||
|
@ -52,7 +52,6 @@ class Frontend extends TextScanner {
|
|||||||
|
|
||||||
async prepare() {
|
async prepare() {
|
||||||
try {
|
try {
|
||||||
await yomichan.prepare();
|
|
||||||
await this.updateOptions();
|
await this.updateOptions();
|
||||||
const {zoomFactor} = await apiGetZoom();
|
const {zoomFactor} = await apiGetZoom();
|
||||||
this._pageZoomFactor = zoomFactor;
|
this._pageZoomFactor = zoomFactor;
|
||||||
|
Loading…
Reference in New Issue
Block a user