From abb776345c0f672f0887543327815dec04de3498 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 10 Dec 2021 02:12:56 +0800 Subject: no testing == tons of bugs --- libs/music/player.d/main_static.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs') 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!
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(); }, -- cgit v1.2.3