1
0
Эх сурвалжийг харах

allow detection of reconnect-check

Rodja Trappe 1 жил өмнө
parent
commit
e87e3fc0af

+ 1 - 1
nicegui/templates/index.html

@@ -234,7 +234,7 @@
           });
           window.socket.on("try_reconnect", () => {
             const checkAndReload = async () => {
-              await fetch(window.location.href);
+              await fetch(window.location.href, { headers: { 'NiceGUI-Check': 'try_reconnect' }, });
               window.location.reload();
             };
             setInterval(checkAndReload, 500);