Skip to content

Commit

Permalink
Merge pull request #1052 from jgranick/patch-2
Browse files Browse the repository at this point in the history
Fix `InvalidStateError` on IE11 when playing sound
  • Loading branch information
goldfire authored Dec 10, 2018
2 parents e2f9122 + ea4fa59 commit fb72894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@
self._clearTimer(id);

// Update the seek position for HTML5 Audio.
if (!self._webAudio && sound._node) {
if (!self._webAudio && sound._node && !isNaN(sound._node.duration)) {
sound._node.currentTime = seek;
}

Expand Down

0 comments on commit fb72894

Please sign in to comment.