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