Skip to content

Commit 4f65bd5

Browse files
authored
Merge pull request goldfire#1016 from jtolj/master
IE11 play is undefined addresses goldfire#1015
2 parents 30623fc + 3fd32f8 commit 4f65bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/howler.core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@
779779
var play = node.play();
780780

781781
// Support older browsers that don't support promises, and thus don't have this issue.
782-
if (typeof Promise !== 'undefined' && (play instanceof Promise || typeof play.then === 'function')) {
782+
if (play && typeof Promise !== 'undefined' && (play instanceof Promise || typeof play.then === 'function')) {
783783
// Implements a lock to prevent DOMException: The play() request was interrupted by a call to pause().
784784
self._playLock = true;
785785

0 commit comments

Comments
 (0)