summaryrefslogtreecommitdiff
path: root/ext/bg/js/context.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-03-02 23:26:55 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-03-02 23:26:55 +0200
commite6347a94e7ff0b7a5c1db7e6f83f50d93c2d4545 (patch)
treec4d58c3d9f8dbc3f46fbe50bde837755197a3109 /ext/bg/js/context.js
parenta05a05c4f49d97f44dc3e1599906047c4a346512 (diff)
prepare Backend for browser_action
Diffstat (limited to 'ext/bg/js/context.js')
-rw-r--r--ext/bg/js/context.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/context.js b/ext/bg/js/context.js
index bec964fb..1095c7e0 100644
--- a/ext/bg/js/context.js
+++ b/ext/bg/js/context.js
@@ -48,7 +48,9 @@ function setupButtonEvents(selector, command, url) {
}
}
-window.addEventListener('DOMContentLoaded', () => {
+window.addEventListener('DOMContentLoaded', async () => {
+ await yomichan.prepare();
+
showExtensionInfo();
apiGetEnvironmentInfo().then(({browser}) => {