From faff06bbbd70dad9e6b20bb059751638c0c8fe2d Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Sat, 13 Oct 2018 01:48:53 +0300 Subject: [PATCH] Fix back button on song select --- public/src/js/soundbuffer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/js/soundbuffer.js b/public/src/js/soundbuffer.js index f4cd65f..9a8c1c2 100644 --- a/public/src/js/soundbuffer.js +++ b/public/src/js/soundbuffer.js @@ -179,7 +179,9 @@ class Sound{ stop(time, absolute){ time = this.convertTime(time, absolute) this.sources.forEach(source => { - source.stop(Math.max(source.startTime, time)) + try{ + source.stop(Math.max(source.startTime, time)) + }catch(e){} }) this.setTimeouts(time).then(() => { if(this.loop){