From afce038a7eaef19c558764b6dc3fb1450e9f1654 Mon Sep 17 00:00:00 2001 From: Gerben Date: Mon, 18 Nov 2019 16:32:19 +0100 Subject: [PATCH] No longer need to stop before changing selection The issue is fixed in waveform-playlist instead. --- app/audio-player/contentscript.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/audio-player/contentscript.js b/app/audio-player/contentscript.js index 2a5cb36..b322ad6 100644 --- a/app/audio-player/contentscript.js +++ b/app/audio-player/contentscript.js @@ -72,12 +72,6 @@ export default async function init() { // Bind window hash change to update player window.addEventListener('hashchange', async () => { - if(playlist.isPlaying()) { - eventEmitter.emit('stop') - // pause needs a small delay, coz the lib doesn't - // update player view (drawRequest) when isPlaying() = true. - await delay(10); - } await syncFragmentToSelection(); eventEmitter.emit('play'); });