Skip to content

Commit 0b82b30

Browse files
committed
Return seek of 0 if track is still loading
1 parent e9b6241 commit 0b82b30

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
// If there is no ID, bail out.
16061606
if (typeof id === 'undefined') {
1607-
return self;
1607+
return 0;
16081608
}
16091609

16101610
// If the sound hasn't loaded, add it to the load queue to seek when capable.

0 commit comments

Comments
 (0)