Skip to content

Commit

Permalink
Merge pull request #631 from fastbolt/master
Browse files Browse the repository at this point in the history
Fix IE11 issue in enhanced security mode on TerminalServer.
  • Loading branch information
goldfire committed Nov 11, 2016
2 parents d4c63f2 + 4dac2c0 commit b571cd5
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 b571cd5

Please sign in to comment.