From 1b6eedc7b19b9dbc51b58a5cc95fb17254b47231 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 5 Jan 2014 19:12:11 -0500 Subject: Silently ignore audio failures. --- www/js/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf