summaryrefslogtreecommitdiff
path: root/libs/music/player.d
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-12-10 02:12:56 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-12-10 02:12:56 +0800
commitabb776345c0f672f0887543327815dec04de3498 (patch)
tree8b9247fc463fa256a7dabc01283a9a21629dff29 /libs/music/player.d
parent2a8cd963dbcbb7a6eaeaf3b4ed569b72cc987af8 (diff)
downloadweb-abb776345c0f672f0887543327815dec04de3498.tar.xz
no testing == tons of bugs
Diffstat (limited to 'libs/music/player.d')
-rw-r--r--libs/music/player.d/main_static.js4
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();
},