mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-24 15:20:21 +08:00
added event listener to play chime on the first click
This commit is contained in:
parent
2eaf1080d6
commit
4885a76a75
@ -155,8 +155,11 @@ 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);
|
||||
|
||||
window.initgui = async function(options){
|
||||
let url = new URL(window.location);
|
||||
url = url.href;
|
||||
|
Loading…
Reference in New Issue
Block a user