Skip to content

Commit 289bcda

Browse files
committed
Don't add seek without value to queue when loading
Fixes goldfire#1189
1 parent f851cad commit 289bcda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/howler.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@
16041604
}
16051605

16061606
// If the sound hasn't loaded, add it to the load queue to seek when capable.
1607-
if (self._state !== 'loaded' || self._playLock) {
1607+
if (typeof seek === 'number' && (self._state !== 'loaded' || self._playLock)) {
16081608
self._queue.push({
16091609
event: 'seek',
16101610
action: function() {

0 commit comments

Comments
 (0)