summaryrefslogtreecommitdiff
path: root/frontend/admin/panel.html
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/admin/panel.html')
-rw-r--r--frontend/admin/panel.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/admin/panel.html b/frontend/admin/panel.html
index 1169c30..1b0f2cf 100644
--- a/frontend/admin/panel.html
+++ b/frontend/admin/panel.html
@@ -77,7 +77,11 @@
</div>
<script src="admin.js"></script>
<script>
- panelLoginCheck();
+ (async () => {
+ if (await panelLoginCheck()) {
+ syncMachineStatus();
+ }
+ })();
</script>
</body>
</html>