We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 789e5a6 commit 4cd4bf5Copy full SHA for 4cd4bf5
src/soundjs/webaudio/WebAudioPlugin.js
@@ -338,8 +338,9 @@ this.createjs = this.createjs || {};
338
s._createAudioContext = function() {
339
// Slightly modified version of https://github.com/Jam3/ios-safe-audio-context
340
// Resolves issues with first-run contexts playing garbled on iOS.
341
- var AudioCtor = (window.AudioContext || window.webkitAudioContext),
342
- context = new AudioCtor();
+ var AudioCtor = (window.AudioContext || window.webkitAudioContext);
+ if (AudioCtor == null) { return null; }
343
+ var context = new AudioCtor();
344
345
// Check if hack is necessary. Only occurs in iOS6+ devices
346
// and only when you first boot the iPhone, or play a audio/video
0 commit comments