Permalink
Browse files

small change

  • Loading branch information...
1 parent df0f1d0 commit 94dd15de65a81e64351ae1a6bbef0326850ff6cf @BlackScorp committed Mar 5, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 assets/js/loader.js
View
@@ -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 {

0 comments on commit 94dd15d

Please sign in to comment.