prettier
All checks were successful
Build / build (pull_request) Successful in 47s

This commit is contained in:
Sainan 2025-06-20 19:19:06 +02:00
parent 55cb005cbf
commit 799e76bdc7

View File

@ -1,9 +1,9 @@
function openWebSocket() { function openWebSocket() {
window.ws = new WebSocket("/custom/ws"); window.ws = new WebSocket("/custom/ws");
window.ws.onmessage = (e) => { window.ws.onmessage = e => {
const msg = JSON.parse(e.data); const msg = JSON.parse(e.data);
if ("ports" in msg) { if ("ports" in msg) {
location.port = (location.protocol == "https:" ? msg.ports.https : msg.ports.http); location.port = location.protocol == "https:" ? msg.ports.https : msg.ports.http;
} }
if ("config_reloaded" in msg) { if ("config_reloaded" in msg) {
//window.is_admin = undefined; //window.is_admin = undefined;