Fix syntax error in audio unlock function that broke the game

This commit is contained in:
justin committed 2026-05-20 11:48:34 -07:00
1 parent f7901ad59a
commit 68d6c7d735
1 file changed
+2
+2
View File
@@ -119,6 +119,8 @@ const SFX = (() => {
if (ctx.state === 'suspended') ctx.resume();
return ctx;
}
function unlock() {
if (!ctx) ctx = new (window.AudioContext || window.webkitAudioContext)();
if (ctx.state === 'suspended') ctx.resume().then(() => {});
}