remove unnecessary window.

master
Aevann 2023-10-19 22:08:32 +03:00
parent 677d5fd251
commit c6e4f2be6c
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ function prepare_to_pause(audio) {
function handle_playing_music(audio) {
audio.addEventListener('play', () => {
localStorage.setItem("playing_music", Date.now());
window.addEventListener('beforeunload', () => {
addEventListener('beforeunload', () => {
localStorage.setItem("playing_music", 0);
})
})