From 5bf805755a33f6f10fd9621f8a2bff7ba1cb7440 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 28 Jun 2020 11:26:43 -0400 Subject: Yomichan object separation (#627) * Move "yomichan" object setup to a separate file * Update script imports * Align message handlers * Rename Yomichan.prepare to Yomichan.ready * Add new prepare function * Improve isExtensionUrl --- ext/fg/js/content-script-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/fg/js') diff --git a/ext/fg/js/content-script-main.js b/ext/fg/js/content-script-main.js index 1f3a69e5..6b0706fa 100644 --- a/ext/fg/js/content-script-main.js +++ b/ext/fg/js/content-script-main.js @@ -24,7 +24,7 @@ (async () => { try { api.forwardLogsToBackend(); - await yomichan.prepare(); + await yomichan.ready(); const {frameId} = await api.frameInformationGet(); if (typeof frameId !== 'number') { -- cgit v1.2.3