From 31789ac38a353b2b4c899f853ca2b1c3e485d885 Mon Sep 17 00:00:00 2001 From: artemave Date: Sun, 29 Oct 2023 13:33:50 +0100 Subject: [PATCH] Fix 404 audio not playing --- js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index 10b5f98..f799679 100644 --- a/js/index.js +++ b/js/index.js @@ -54,11 +54,12 @@ inputContainer.ontransitionend = function() { audio.play() }).catch(() => { - audio.src = 'assets/imperial_march.mp3' + audio.src = '/assets/imperial_march.mp3' new Promise((resolve) => { audio.oncanplaythrough = resolve }).then(() => { + audio.play() performCrawl([ "Tun dun dun, da da dun, 404", "404, da da dun, 404",