소스 검색

allow detection of reconnect-check

Rodja Trappe 1 년 전
부모
커밋
e87e3fc0af
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      nicegui/templates/index.html

+ 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);