Replaced window.prompt()/alert() with custom popup
This commit is contained in:
parent
8ccb9003cc
commit
ee5a8d9516
14 changed files with 138 additions and 63 deletions
|
|
@ -28,6 +28,6 @@ module.exports.socketExceptionHandler = function(socket, err){
|
|||
|
||||
module.exports.socketCriticalExceptionHandler = function(socket, err){
|
||||
//if not yell at the browser for fucking up, and tell it what it did wrong.
|
||||
socket.emit("kick", {type: "error", reason: err.message});
|
||||
socket.emit("kick", {type: "Disconnected", reason: `Server Error: ${err.message}`});
|
||||
return socket.disconnect();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue