forked from MarseyWorld/MarseyWorld
remove unnecessary window.
parent
677d5fd251
commit
c6e4f2be6c
|
@ -287,7 +287,7 @@ function prepare_to_pause(audio) {
|
||||||
function handle_playing_music(audio) {
|
function handle_playing_music(audio) {
|
||||||
audio.addEventListener('play', () => {
|
audio.addEventListener('play', () => {
|
||||||
localStorage.setItem("playing_music", Date.now());
|
localStorage.setItem("playing_music", Date.now());
|
||||||
window.addEventListener('beforeunload', () => {
|
addEventListener('beforeunload', () => {
|
||||||
localStorage.setItem("playing_music", 0);
|
localStorage.setItem("playing_music", 0);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue