matchmaking: add: clear message if normal closure
This commit is contained in:
@ -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