mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-24 23:38:40 +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 = ()=>{
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user