matchmaking: add: clear message if normal closure
This commit is contained in:
@ -39,7 +39,7 @@ class MatchMaking
|
||||
onclose(event)
|
||||
{
|
||||
this.stop();
|
||||
this.disconnect_func()
|
||||
this.disconnect_func(event);
|
||||
}
|
||||
|
||||
async stop()
|
||||
|
@ -25,8 +25,10 @@ export default class extends AbstractAuthentifiedView {
|
||||
}
|
||||
}
|
||||
|
||||
ondisconnect()
|
||||
ondisconnect(event)
|
||||
{
|
||||
if (event.code === 1000)
|
||||
clear("innerText", ["detail"])
|
||||
document.getElementById("button").value = "Find a game"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user