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