Jelajahi Sumber

code review

Falko Schindler 1 tahun lalu
induk
melakukan
9d5829df7f
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      nicegui/templates/index.html

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