浏览代码

show offline error messages if they are available

Rodja Trappe 1 年之前
父节点
当前提交
18fb419761
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/templates/index.html

+ 1 - 1
nicegui/templates/index.html

@@ -231,7 +231,7 @@
             document.getElementById('popup').style.opacity = 1;
             const checkAndReload = async () => {
               const response = await fetch(window.location.href);
-              if (response.ok) window.location.reload();
+              if (response.ok || response.status == 404) window.location.reload();
             };
             setInterval(checkAndReload, 500);
           });