fix online check

This commit is contained in:
smartfrigde 2024-02-03 20:20:56 +01:00
parent 2d2181fae2
commit d43371c99b

View file

@ -27,7 +27,7 @@
<script> <script>
async function loadLang() { async function loadLang() {
const text = document.getElementById("text-splashscreen"); const text = document.getElementById("text-splashscreen");
if (window.navigator.onLine === true) { if (window.navigator.onLine === false) {
text.innerHTML = await internal.getLang("loading_screen_offline"); text.innerHTML = await internal.getLang("loading_screen_offline");
document.getElementById("ignore").style.display = "block"; document.getElementById("ignore").style.display = "block";
document.getElementById("ignore").onclick = () => { document.getElementById("ignore").onclick = () => {