1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-16 13:55:52 +02:00

just check statusCode

This commit is contained in:
Kyle Spearrin 2018-08-15 09:01:00 -04:00
parent 9f26f9f377
commit d56c5ff4f1

View File

@ -209,7 +209,7 @@ export class AuthService {
this.kdfIterations = preloginResponse.kdfIterations;
}
} catch (e) {
if (!(e instanceof ErrorResponse) || e.statusCode !== 404) {
if (e == null || e.statusCode !== 404) {
throw e;
}
}