added event listener to play chime on the first click

This commit is contained in:
4nshuman 2024-11-09 15:15:57 +05:30 committed by Eric Dubé
parent 2eaf1080d6
commit 4885a76a75

View File

@ -155,8 +155,11 @@ if(jQuery){
window.playStartUpChime = ()=>{ window.playStartUpChime = ()=>{
let audio = new Audio('/src/audio/puter_chime.mp3'); let audio = new Audio('/src/audio/puter_chime.mp3');
audio.play(); audio.play();
document.removeEventListener("click", window.playStartUpChime);
} }
document.addEventListener("click", window.playStartUpChime);
window.initgui = async function(options){ window.initgui = async function(options){
let url = new URL(window.location); let url = new URL(window.location);
url = url.href; url = url.href;