summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-07-06 23:27:32 -0500
committersanine <sanine.not@pm.me>2024-07-06 23:27:32 -0500
commitbf199ccd7b45a77f021d3b414a5c380bd4c790e4 (patch)
tree201ab4cb40673fa401a5cdf24142460a602c423e /main.js
parentfae278000ff919aed473625f704c0a2a62bdf443 (diff)
preload sfx
Diffstat (limited to 'main.js')
-rw-r--r--main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.js b/main.js
index 4ec64dc..44a0fe3 100644
--- a/main.js
+++ b/main.js
@@ -76,7 +76,7 @@ window.onload = () => setTimeout(() => {
Promise.all([...Object.values(sfx)].map(x => new Promise(resolve => {
x.load();
- x.addEventListener('canplaythrough', resolve);
+ x.addEventListener('canplaythrough', resolve, false);
}))).then(
() => setupLevelSelectUi(root, sfx)
);