Added 404 and 403 status on routes

This commit is contained in:
Wu Cheng-Han 2015-12-30 00:33:36 -05:00
parent 5467e6da8d
commit f5010af4f1
3 changed files with 14 additions and 2 deletions

View file

@ -1133,7 +1133,11 @@ socket.emit = function () {
};
socket.on('info', function (data) {
console.error(data);
location.href = "./404.html";
location.href = "./404";
});
socket.on('error', function (data) {
console.error(data);
location.href = "./403";
});
socket.on('disconnect', function (data) {
showStatus(statusType.offline);