Skip to content

Commit

Permalink
closes Studio-42#280
Browse files Browse the repository at this point in the history
  • Loading branch information
dio-el-claire committed Jun 4, 2012
1 parent 10ee37f commit a35e965
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/commands/quicklook.js
Expand Up @@ -92,7 +92,13 @@ elFinder.prototype.commands.quicklook = function() {

support = function(codec) {
var media = document.createElement(codec.substr(0, codec.indexOf('/'))),
value = false;

try {
value = media.canPlayType && media.canPlayType(codec);
} catch (e) {

}

return value && value !== '' && value != 'no';
},
Expand Down

0 comments on commit a35e965

Please sign in to comment.