summaryrefslogtreecommitdiff
path: root/ext/js/app/content-script-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-14 15:19:31 -0500
committerGitHub <noreply@github.com>2021-02-14 15:19:31 -0500
commitefe8140f103179f50b610f182148b9427af99010 (patch)
tree94afdefddf9985d2ec11cdcd9a1e2638e2005b3d /ext/js/app/content-script-main.js
parent94201ed44ac1835637e77a6a7f583aca70bbf2d3 (diff)
Api prepare refactor (#1391)
* Refactor API preparation * Run yomichan.prepare manually in the entry point function
Diffstat (limited to 'ext/js/app/content-script-main.js')
-rw-r--r--ext/js/app/content-script-main.js4
1 files changed, 2 insertions, 2 deletions
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') {