summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/js/api.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/api.js b/www/js/api.js
index 22342c5..648d0f8 100644
--- a/www/js/api.js
+++ b/www/js/api.js
@@ -66,7 +66,8 @@ window.html5ks.api = new (function () {
deferred.resolve();
}, false);
audio.onerror = function (e) {
- throw new Error(e);
+ console.error(audio.error);
+ deferred.resolve();
};
audio.load();
audio.volume = fade ? 0 : volume;