summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/content-script-main.js4
-rw-r--r--ext/fg/js/float-main.js4
2 files changed, 6 insertions, 2 deletions
diff --git a/ext/fg/js/content-script-main.js b/ext/fg/js/content-script-main.js
index 6b0706fa..4db41cb9 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.ready();
+ await yomichan.backendReady();
const {frameId} = await api.frameInformationGet();
if (typeof frameId !== 'number') {
@@ -40,6 +40,8 @@
{}
);
await frontend.prepare();
+
+ yomichan.ready();
} catch (e) {
yomichan.logError(e);
}
diff --git a/ext/fg/js/float-main.js b/ext/fg/js/float-main.js
index d31d5050..85f605a2 100644
--- a/ext/fg/js/float-main.js
+++ b/ext/fg/js/float-main.js
@@ -23,10 +23,12 @@
(async () => {
try {
api.forwardLogsToBackend();
- await yomichan.ready();
+ await yomichan.backendReady();
const display = new DisplayFloat();
await display.prepare();
+
+ yomichan.ready();
} catch (e) {
yomichan.logError(e);
}