v58: фикс init — проверка cu перед show()

This commit is contained in:
Dauren777 2026-06-09 12:04:31 +00:00
parent 6de0432dcc
commit 7a78473977

View File

@ -288,7 +288,7 @@ document.getElementById("mo").addEventListener("click",function(e){if(e.target==
document.addEventListener("keydown",function(e){if(e.key==="Escape")closeM()});
document.addEventListener("click",function(e){if(!e.target.closest(".notif-btn")&&!e.target.closest(".notif-drop"))document.getElementById("nd").classList.remove("on")});
le();var su=localStorage.getItem("su");if(su){try{cu=JSON.parse(su);show()}catch(e){}}
le();var su=localStorage.getItem("su");if(su){try{cu=JSON.parse(su);if(cu)show()}catch(e){}}
</script>
</body>
</html>