We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30623fc + 3fd32f8 commit 4f65bd5Copy full SHA for 4f65bd5
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