From 289bcda97d7998d832257f3ed5bc3837b2156379 Mon Sep 17 00:00:00 2001 From: James Simpson Date: Sat, 24 Oct 2020 16:08:11 -0500 Subject: [PATCH] Don't add seek without value to queue when loading Fixes #1189 --- src/howler.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/howler.core.js b/src/howler.core.js index bee5dd07..3c1de990 100644 --- a/src/howler.core.js +++ b/src/howler.core.js @@ -1604,7 +1604,7 @@ } // If the sound hasn't loaded, add it to the load queue to seek when capable. - if (self._state !== 'loaded' || self._playLock) { + if (typeof seek === 'number' && (self._state !== 'loaded' || self._playLock)) { self._queue.push({ event: 'seek', action: function() {