소스 검색

code review

Falko Schindler 1 년 전
부모
커밋
9d5829df7f
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      nicegui/templates/index.html

+ 4 - 4
nicegui/templates/index.html

@@ -273,10 +273,10 @@
               }
               }
             },
             },
             try_reconnect: async () => {
             try_reconnect: async () => {
-                document.getElementById('popup').style.opacity = 1;
-                await fetch(window.location.href, { headers: { 'NiceGUI-Check': 'try_reconnect' } });
-                console.log('reloading because reconnect was requested')
-                window.location.reload();
+              document.getElementById('popup').style.opacity = 1;
+              await fetch(window.location.href, { headers: { 'NiceGUI-Check': 'try_reconnect' } });
+              console.log('reloading because reconnect was requested')
+              window.location.reload();
             },
             },
             disconnect: () => {
             disconnect: () => {
               document.getElementById('popup').style.opacity = 1;
               document.getElementById('popup').style.opacity = 1;