From 99b17313d70a957fd076994a16c692850a9b0faa Mon Sep 17 00:00:00 2001 From: 4nshuman Date: Sat, 9 Nov 2024 15:16:16 +0530 Subject: [PATCH] play chime only once --- src/gui/src/initgui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/src/initgui.js b/src/gui/src/initgui.js index 26a0fd7e..cc2531fc 100644 --- a/src/gui/src/initgui.js +++ b/src/gui/src/initgui.js @@ -153,6 +153,7 @@ if(jQuery){ window.playStartUpChime = ()=>{ let audio = new Audio('/src/audio/puter_chime.mp3'); audio.play(); + document.removeEventListener("click", window.playStartUpChime); } document.addEventListener("click", window.playStartUpChime);