This commit is contained in:
parent
f634b8cce3
commit
e2fd7a343b
2 changed files with 4 additions and 2 deletions
|
@ -34,7 +34,9 @@ class Socket extends EventTarget {
|
||||||
};
|
};
|
||||||
|
|
||||||
this._socket.onclose = () => {
|
this._socket.onclose = () => {
|
||||||
const willRefresh = confirm("Realtime Data Connection closed\nWould you like to reconnect?");
|
const willRefresh = confirm(
|
||||||
|
"Realtime Data Connection closed\nWould you like to reconnect?",
|
||||||
|
);
|
||||||
if (willRefresh) {
|
if (willRefresh) {
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue