diff --git a/game.js b/game.js index bcb8284..7a03f2f 100644 --- a/game.js +++ b/game.js @@ -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(() => {}); }