1
0
Falko Schindler 1 жил өмнө
parent
commit
9d5829df7f

+ 4 - 4
nicegui/templates/index.html

@@ -273,10 +273,10 @@
               }
             },
             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: () => {
               document.getElementById('popup').style.opacity = 1;