summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-25 21:23:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-25 21:23:26 +0900
commit9ca6a6bf064634bab6611f4e70d20a62fd3b48ed (patch)
treee7e7954b0236822ad1ecc2367a5d07011c3e738d
parentAdd excludeNsfw option (diff)
downloadsharkey-9ca6a6bf064634bab6611f4e70d20a62fd3b48ed.tar.gz
sharkey-9ca6a6bf064634bab6611f4e70d20a62fd3b48ed.tar.bz2
sharkey-9ca6a6bf064634bab6611f4e70d20a62fd3b48ed.zip
サーバーへの接続が不安定な時にサインアウトしないように
-rw-r--r--src/client/app/mios.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/mios.ts b/src/client/app/mios.ts
index 0f72cd2f34..ed9e3a6aeb 100644
--- a/src/client/app/mios.ts
+++ b/src/client/app/mios.ts
@@ -265,7 +265,7 @@ export default class MiOS extends EventEmitter {
// When success
.then(res => {
// When failed to authenticate user
- if (res.status !== 200) {
+ if (res.status !== 200 && res.status < 500) {
return this.signout();
}