aboutsummaryrefslogtreecommitdiff
path: root/ext/js/settings/pitch-accents-preview-main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/settings/pitch-accents-preview-main.js')
-rw-r--r--ext/js/settings/pitch-accents-preview-main.js4
1 files changed, 4 insertions, 0 deletions
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