Skip to content

Commit

Permalink
Merge pull request #1016 from jtolj/master
Browse files Browse the repository at this point in the history
IE11 play is undefined addresses #1015
  • Loading branch information
goldfire authored Aug 25, 2018
2 parents d0e52e9 + ce47f6d commit 9185b6a
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 @@ -779,7 +779,7 @@
var play = node.play();

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

Expand Down

0 comments on commit 9185b6a

Please sign in to comment.