diff options
Diffstat (limited to 'libs/music')
-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(); }, |