Spaces:
Runtime error
Runtime error
Commit
·
68d39ea
1
Parent(s):
2548f77
Update static/index.html
Browse files- static/index.html +2 -2
static/index.html
CHANGED
@@ -135,8 +135,8 @@
|
|
135 |
window.addEventListener('beforeunload', function (e) {
|
136 |
if (isConnected) {
|
137 |
try {
|
138 |
-
socket.send(JSON.stringify({ type: "disconnect" }));
|
139 |
-
socket.close();
|
140 |
} catch (error) {
|
141 |
console.error("Error during disconnection:", error);
|
142 |
}
|
|
|
135 |
window.addEventListener('beforeunload', function (e) {
|
136 |
if (isConnected) {
|
137 |
try {
|
138 |
+
//socket.send(JSON.stringify({ type: "disconnect" }));
|
139 |
+
//socket.close();
|
140 |
} catch (error) {
|
141 |
console.error("Error during disconnection:", error);
|
142 |
}
|