mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 01:29:14 +00:00
Remove room ID after quit
This commit is contained in:
parent
7071d45c39
commit
c260d46aeb
2 changed files with 3 additions and 2 deletions
3
static/js/controller.js
vendored
3
static/js/controller.js
vendored
|
|
@ -140,6 +140,9 @@ function doButtonUp(name) {
|
|||
if (name === "quit") {
|
||||
stopInputTimer();
|
||||
showMenuScreen();
|
||||
// TODO: Stop game
|
||||
screen = document.getElementById("game-screen");
|
||||
$("#room-txt").val("");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
2
static/js/ws.js
vendored
2
static/js/ws.js
vendored
|
|
@ -187,8 +187,6 @@ function startWebRTC() {
|
|||
// TODO: Fix curPacketID
|
||||
conn.send(JSON.stringify({"id": "initwebrtc", "data": session, "packet_id": curPacketID}));
|
||||
} else {
|
||||
//pc.addIceCandidate(event.candidate).catch(e => {
|
||||
//log("Failure during addIceCandidate(): " + e.name);});
|
||||
conn.send(JSON.stringify({"id": "icecandidate", "data": JSON.stringify(event.candidate)}));
|
||||
console.log(JSON.stringify(event.candidate));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue