Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackScorp committed Mar 5, 2012
1 parent df0f1d0 commit 94dd15d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/js/loader.js
Expand Up @@ -65,8 +65,9 @@ Crafty.extend({


if (Crafty.support.audio && (ext === "mp3" || ext === "wav" || ext === "ogg" || ext === "mp4")) {
event = 'loadedmetadata';
if (navigator.userAgent.indexOf('Chrome') != -1 && ext !== "mp3") j++;
event = 'loadedmetadata';
//Chrome has problems with mp3
if (navigator.userAgent.indexOf('Chrome') != -1 && ext === "mp3") j++;
} else if (ext === "jpg" || ext === "jpeg" || ext === "gif" || ext === "png") {
event = 'load';
} else {
Expand Down

0 comments on commit 94dd15d

Please sign in to comment.