Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

small change

  • Loading branch information...
commit 94dd15de65a81e64351ae1a6bbef0326850ff6cf 1 parent df0f1d0
@BlackScorp authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 assets/js/loader.js
View
5 assets/js/loader.js
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.