Make the websocket disconnect message not pop up a modal dialog so that it's less annoying when it happens in the normal course of events. #60

This commit is contained in:
Cory McWilliams 2024-05-27 20:35:40 -04:00
parent 10097ffeb8
commit 2eebfa9a7a

View File

@ -10,6 +10,7 @@ let gEditor;
let gOriginalInput;
let kErrorColor = '#dc322f';
let kDisconnectColor = '#f00';
let kStatusColor = '#fff';
// Functions that server-side app code can call through the app object.
@ -1548,7 +1549,7 @@ function connectSocket(path) {
};
setStatusMessage(
'🔴 Closed: ' + (k_codes[event.code] || event.code),
kErrorColor
kDisconnectColor
);
};
}