From ce47f6dc4907c757f2d7efa0ec20b6754932837d Mon Sep 17 00:00:00 2001 From: Jesse Tolj Date: Tue, 7 Aug 2018 12:37:17 -0400 Subject: [PATCH] IE11 play is undefined addresses #1015 --- src/howler.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/howler.core.js b/src/howler.core.js index 8577cfaf..b5069fdc 100644 --- a/src/howler.core.js +++ b/src/howler.core.js @@ -781,7 +781,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;