From 5f4c37e0a4123b322f4383f6cc383478570414dc Mon Sep 17 00:00:00 2001 From: James Simpson Date: Fri, 19 Apr 2019 15:00:20 -0500 Subject: [PATCH] Remove browser checks for unlocks since all major browsers now or soon will have auto play locked --- src/howler.core.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/howler.core.js b/src/howler.core.js index 699845d0..aa87dc4a 100644 --- a/src/howler.core.js +++ b/src/howler.core.js @@ -282,9 +282,8 @@ _unlockAudio: function() { var self = this || Howler; - // Only run this on certain browsers/devices. - var shouldUnlock = /iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi|Chrome|Safari|Firefox/i.test(self._navigator && self._navigator.userAgent); - if (self._audioUnlocked || !self.ctx || !shouldUnlock) { + // Only run this if Web Audio is supported and it hasn't already been unlocked. + if (self._audioUnlocked || !self.ctx) { return; }