From efe8140f103179f50b610f182148b9427af99010 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 14 Feb 2021 15:19:31 -0500 Subject: Api prepare refactor (#1391) * Refactor API preparation * Run yomichan.prepare manually in the entry point function --- ext/js/app/content-script-main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/app') diff --git a/ext/js/app/content-script-main.js b/ext/js/app/content-script-main.js index 5dee4c56..ee05034e 100644 --- a/ext/js/app/content-script-main.js +++ b/ext/js/app/content-script-main.js @@ -24,8 +24,8 @@ (async () => { try { - api.forwardLogsToBackend(); - await yomichan.backendReady(); + api.prepare(); + await yomichan.prepare(); const {tabId, frameId} = await api.frameInformationGet(); if (typeof frameId !== 'number') { -- cgit v1.2.3