We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0e52e9 + ce47f6d commit 9185b6aCopy full SHA for 9185b6a
src/howler.core.js
@@ -779,7 +779,7 @@
779
var play = node.play();
780
781
// 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')) {
+ if (play && typeof Promise !== 'undefined' && (play instanceof Promise || typeof play.then === 'function')) {
783
// Implements a lock to prevent DOMException: The play() request was interrupted by a call to pause().
784
self._playLock = true;
785
0 commit comments