Update behavior.js
This commit is contained in:
1 parent
f63f36bfea
commit
4bf7700886
1 file changed
+1
-1
+1
-1
@@ -281,7 +281,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof io !== "undefined") {
|
if (typeof io !== "undefined") {
|
||||||
websocket_connection = io();
|
websocket_connection = io({ transports: ["polling"], upgrade: false });
|
||||||
|
|
||||||
websocket_connection.on("game_state_changed", function() {
|
websocket_connection.on("game_state_changed", function() {
|
||||||
if (document.querySelector(".game-section") || document.querySelector(".administrator-section")) {
|
if (document.querySelector(".game-section") || document.querySelector(".administrator-section")) {
|
||||||
|
|||||||
Reference in new issue
Block a user