summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-01-31 15:33:25 -0600
committerCheng-Han, Wu2016-01-31 15:33:25 -0600
commiteba84527c324744d841b5c4cb5facef3b3e8e50c (patch)
treef8c097d3d734e434eac57b367107c7474873b892 /public/js
parent2eec0ae35d32f18d082fe588e048f90296bd371c (diff)
Fixed only "AUTH failed" error message would redirect to 403
Diffstat (limited to '')
-rw-r--r--public/js/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 96e614ef..bc3ee793 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1175,7 +1175,8 @@ socket.on('info', function (data) {
});
socket.on('error', function (data) {
console.error(data);
- location.href = "./403";
+ if (data.message.indexOf('AUTH failed') === 0)
+ location.href = "./403";
});
socket.on('disconnect', function (data) {
showStatus(statusType.offline);