Fix some incorrect redirects
This commit is contained in:
parent
4ea5191d30
commit
7a46c9fc5c
1 changed files with 4 additions and 4 deletions
|
@ -2201,20 +2201,20 @@ socket.on('info', function (data) {
|
||||||
console.error(data);
|
console.error(data);
|
||||||
switch (data.code) {
|
switch (data.code) {
|
||||||
case 403:
|
case 403:
|
||||||
location.href = "./403";
|
location.href = serverurl + "/403";
|
||||||
break;
|
break;
|
||||||
case 404:
|
case 404:
|
||||||
location.href = "./404";
|
location.href = serverurl + "/404";
|
||||||
break;
|
break;
|
||||||
case 500:
|
case 500:
|
||||||
location.href = "./500";
|
location.href = serverurl + "/500";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
socket.on('error', function (data) {
|
socket.on('error', function (data) {
|
||||||
console.error(data);
|
console.error(data);
|
||||||
if (data.message && data.message.indexOf('AUTH failed') === 0)
|
if (data.message && data.message.indexOf('AUTH failed') === 0)
|
||||||
location.href = "./403";
|
location.href = serverurl + "/403";
|
||||||
});
|
});
|
||||||
var retryOnDisconnect = false;
|
var retryOnDisconnect = false;
|
||||||
var retryTimer = null;
|
var retryTimer = null;
|
||||||
|
|
Loading…
Reference in a new issue