Skip to content

Commit

Permalink
Fix IE11 issue in enhanced security mode on TerminalServer.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirtzbruch committed Oct 6, 2016
1 parent dcc679f commit 4dac2c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dist/howler.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,12 @@
*/
_setupCodecs: function() {
var self = this || Howler;
var audioTest = (typeof Audio !== 'undefined') ? new Audio() : null;
try {
var audioTest = (typeof Audio !== 'undefined') ? new Audio() : null;
}
catch(e) {
return self;
}

if (!audioTest || typeof audioTest.canPlayType !== 'function') {
return self;
Expand Down

0 comments on commit 4dac2c0

Please sign in to comment.