diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-05 19:12:11 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-05 19:12:11 -0500 |
commit | 1b6eedc7b19b9dbc51b58a5cc95fb17254b47231 (patch) | |
tree | 1cd5dd3d7c2bd1fdc67f48b5c8ba713ef43abe08 /www | |
parent | c50def1220db3afed163d1a03cd1b90f1d96ae00 (diff) | |
download | html5ks-1b6eedc7b19b9dbc51b58a5cc95fb17254b47231.tar.xz html5ks-1b6eedc7b19b9dbc51b58a5cc95fb17254b47231.zip |
Silently ignore audio failures.
Diffstat (limited to 'www')
-rw-r--r-- | www/js/api.js | 3 |
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; |