p(v-html="infoMessage")
input#modalNewgame.modal(type="checkbox")
div(role="dialog" aria-labelledby="titleFenedit")
- .card.smallpad
+ .card.smallpad(@keyup.enter="newChallenge")
label#closeNewgame.modal-close(for="modalNewgame")
fieldset
label(for="selectVariant") {{ st.tr["Variant"] }}
}
break;
case "newchat":
- notifyRoom(query["page"], "newchat", {msg:obj.msg, name:obj.name});
+ // WARNING: do not use query["page"], because the page may change
+ notifyRoom(clients[sid].page, "newchat",
+ {msg: obj.msg, name: obj.name});
break;
// TODO: WebRTC instead in this case (most demanding?)
case "newmove":