From 9eac9d9ac6e6ab780251bfee2390b10589dfb785 Mon Sep 17 00:00:00 2001 From: James Simpson Date: Fri, 19 Apr 2019 13:01:32 -0500 Subject: [PATCH] Add Firefox to should unlock list Fixes #1166 --- 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 b42234c4..20678489 100644 --- a/src/howler.core.js +++ b/src/howler.core.js @@ -283,7 +283,7 @@ var self = this || Howler; // Only run this on certain browsers/devices. - var shouldUnlock = /iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi|Chrome|Safari/i.test(self._navigator && self._navigator.userAgent); + 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) { return; }