Skip to content

Commit 42bc914

Browse files
committed
Another small fix for error on older iOS versions
1 parent 247cfff commit 42bc914

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

howler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
}
261261

262262
// automatically try to enable audio on iOS
263-
if (typeof ctx !== 'undefined' && Howler.iOSAutoEnable) {
263+
if (typeof ctx !== 'undefined' && ctx && Howler.iOSAutoEnable) {
264264
Howler._enableiOSAudio();
265265
}
266266

@@ -1322,4 +1322,4 @@
13221322
window.Howl = Howl;
13231323
}
13241324

1325-
})();
1325+
})();

0 commit comments

Comments
 (0)