Skip to content

Commit

Permalink
Remove browser checks for unlocks since all major browsers now or soo…
Browse files Browse the repository at this point in the history
…n will have auto play locked
  • Loading branch information
goldfire committed Apr 19, 2019
1 parent 365488f commit 5f4c37e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5f4c37e

Please sign in to comment.