aboutsummaryrefslogtreecommitdiff
path: root/ext/js/settings
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/settings')
-rw-r--r--ext/js/settings/main.js4
-rw-r--r--ext/js/settings/pitch-accents-preview-main.js4
-rw-r--r--ext/js/settings/popup-preview-frame-main.js3
-rw-r--r--ext/js/settings/settings-main.js2
4 files changed, 9 insertions, 4 deletions
diff --git a/ext/js/settings/main.js b/ext/js/settings/main.js
index 9786d196..0707ea3c 100644
--- a/ext/js/settings/main.js
+++ b/ext/js/settings/main.js
@@ -51,8 +51,8 @@ async function setupEnvironmentInfo() {
(async () => {
try {
- api.forwardLogsToBackend();
- await yomichan.backendReady();
+ api.prepare();
+ await yomichan.prepare();
setupEnvironmentInfo();
showExtensionInformation();
diff --git a/ext/js/settings/pitch-accents-preview-main.js b/ext/js/settings/pitch-accents-preview-main.js
index f292170a..7bc995a2 100644
--- a/ext/js/settings/pitch-accents-preview-main.js
+++ b/ext/js/settings/pitch-accents-preview-main.js
@@ -17,10 +17,14 @@
/* global
* DisplayGenerator
+ * api
*/
(async () => {
try {
+ api.prepare();
+ await yomichan.prepare();
+
const displayGenerator = new DisplayGenerator({
japaneseUtil: null,
mediaLoader: null
diff --git a/ext/js/settings/popup-preview-frame-main.js b/ext/js/settings/popup-preview-frame-main.js
index dcbc0d96..f61b26dc 100644
--- a/ext/js/settings/popup-preview-frame-main.js
+++ b/ext/js/settings/popup-preview-frame-main.js
@@ -24,7 +24,8 @@
(async () => {
try {
- api.forwardLogsToBackend();
+ api.prepare();
+ await yomichan.prepare();
const {tabId, frameId} = await api.frameInformationGet();
diff --git a/ext/js/settings/settings-main.js b/ext/js/settings/settings-main.js
index 24248110..a7e6b7b0 100644
--- a/ext/js/settings/settings-main.js
+++ b/ext/js/settings/settings-main.js
@@ -66,7 +66,7 @@ async function setupGenericSettingsController(genericSettingController) {
const statusFooter = new StatusFooter(document.querySelector('.status-footer-container'));
statusFooter.prepare();
- api.forwardLogsToBackend();
+ api.prepare();
await yomichan.prepare();
setupEnvironmentInfo();