This commit is contained in:
pypy
2021-01-21 12:39:52 +09:00
parent ceebac9730
commit c09fd1a781
+1 -1
View File
@@ -392,7 +392,7 @@ speechSynthesis.getVoices();
return data; return data;
} }
if ((status === 401) && (data.error.message === '"Missing Credentials"') && ($app.isAutoLogin)) { if ((status === 401) && (data.error.message === '"Missing Credentials"') && ($app.isAutoLogin)) {
if (endpoint.substring(0, 10) == 'auth/user?') { if (endpoint.substring(0, 10) === 'auth/user?') {
this.$emit('AUTOLOGIN'); this.$emit('AUTOLOGIN');
} }
throw new Error('401: Missing Credentials'); throw new Error('401: Missing Credentials');