diff options
author | sanine <sanine.not@pm.me> | 2024-07-06 23:27:32 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2024-07-06 23:27:32 -0500 |
commit | bf199ccd7b45a77f021d3b414a5c380bd4c790e4 (patch) | |
tree | 201ab4cb40673fa401a5cdf24142460a602c423e /main.js | |
parent | fae278000ff919aed473625f704c0a2a62bdf443 (diff) |
preload sfx
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) ); |