diff options
-rw-r--r-- | web/dartboat_wasm.c | 2 | ||||
-rw-r--r-- | web/static/dartboat.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c index 26018fa..a4a075c 100644 --- a/web/dartboat_wasm.c +++ b/web/dartboat_wasm.c @@ -637,5 +637,5 @@ EMSCRIPTEN_KEEPALIVE void init() int main() { - EM_ASM(boatReady()); + EM_ASM(boatAfloat()); } diff --git a/web/static/dartboat.js b/web/static/dartboat.js index a97e8bb..51570b4 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -195,7 +195,7 @@ document.addEventListener('keydown', e => { promptHandle('undo'); }); -function boatReady() { +function boatAfloat() { if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', () => _init()); else |