mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 08:04:45 -04:00
Added 404 and 403 status on routes
This commit is contained in:
parent
5467e6da8d
commit
f5010af4f1
3 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue