added close code to connection error dialog

This commit is contained in:
bluesaxman 2020-09-30 19:54:44 +00:00
parent 5c0c2cc1d4
commit 3b88dba9a2

View File

@ -190,7 +190,7 @@ function startGameSession() {
gameSession.onconnect = function () {};
gameSession.onclose = function (event) {
console.log(event);
popupDialog("connection_error","Connection Error!!!",false,"The server connection was closed!",null,function () {
popupDialog("connection_error","Connection Error!!!",false,"The server connection was closed! \n"+event.code+" : "+event.reason+"\n",null,function () {
window.location.search = ""; //reload page
});
};