diff options
author | Chris Xiong <chirs241097@gmail.com> | 2021-12-10 02:12:56 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2021-12-10 02:12:56 +0800 |
commit | abb776345c0f672f0887543327815dec04de3498 (patch) | |
tree | 8b9247fc463fa256a7dabc01283a9a21629dff29 | |
parent | 2a8cd963dbcbb7a6eaeaf3b4ed569b72cc987af8 (diff) | |
download | web-abb776345c0f672f0887543327815dec04de3498.tar.xz |
no testing == tons of bugs
-rw-r--r-- | libs/music/player.d/main_static.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/music/player.d/main_static.js b/libs/music/player.d/main_static.js index e8181f7..28ecee5 100644 --- a/libs/music/player.d/main_static.js +++ b/libs/music/player.d/main_static.js @@ -765,9 +765,10 @@ function init() .then(()=>{ sh.elem('overlaytext').innerHTML+="Done!<br>Click or tap anywhere to start." sh.elem('overlay').onclick=function(){ + let initerr=0; try{ NSAudio.audioInit();NSAudio.connect(); - }catch(e){} + }catch(e){initerr=1;} if(window.location.hash.length) { let p=window.location.hash.substr(1).split('/'); @@ -786,6 +787,7 @@ function init() sh.elem('overlay').style.display='none'; } } + else if(!initerr)sh.elem('overlay').style.display='none'; } sh.elem('overlay').onclick(); }, |