|
|
@@ -69,7 +69,7 @@ async function init() { |
|
|
|
} |
|
|
|
|
|
|
|
// Bind window hash change to update player |
|
|
|
window.addEventListener('hashchange', async function() { |
|
|
|
window.addEventListener('hashchange', async () => { |
|
|
|
if(playlist.isPlaying()) { |
|
|
|
eventEmitter.emit('stop') |
|
|
|
// pause needs a small delay, coz the lib doesn't |
|
|
|