summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorWu Cheng-Han2015-12-30 00:33:36 -0500
committerWu Cheng-Han2015-12-30 00:33:36 -0500
commitf5010af4f1c90ca518ba6983ba009c9c47743240 (patch)
tree547678f1294be005893111d7aafadc6a88ddcb9d /public/js/index.js
parent5467e6da8debc35befd5891bbe393a22f269117d (diff)
Added 404 and 403 status on routes
Diffstat (limited to '')
-rw-r--r--public/js/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index f37244bb..e9be3de0 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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);