Skip to content

Commit

Permalink
One more attempt to fix itch.io crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Dec 10, 2023
1 parent 6bbedc8 commit d769f31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/asteroids-website/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@
window.miniaudio?.unlock_event_types.forEach((e) =>
document.removeEventListener(<any>e, window.miniaudio!.unlock)
);
delete window.miniaudio;
window.miniaudio.unlock = () => {
delete window.miniaudio;
};
}
},
{
Expand Down

0 comments on commit d769f31

Please sign in to comment.