mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-24 15:20:21 +08:00
play chime only once
This commit is contained in:
parent
1919cb3d99
commit
edeb79d92c
@ -155,6 +155,7 @@ 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);
|
document.addEventListener("click", window.playStartUpChime);
|
||||||
|
Loading…
Reference in New Issue
Block a user