forked from rDrama/rDrama
make an event listener be on window instead of an element
parent
b4448ae926
commit
78deb9d6f0
|
@ -13,7 +13,7 @@ if (u_username)
|
||||||
}
|
}
|
||||||
|
|
||||||
audio.play();
|
audio.play();
|
||||||
document.getElementById('userpage').addEventListener('click', () => {
|
window.addEventListener('click', () => {
|
||||||
if (audio.paused) audio.play();
|
if (audio.paused) audio.play();
|
||||||
}, {once : true});
|
}, {once : true});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue