1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-28 22:23:14 +00:00

Check runtime name vs mangled name (#724)

This commit is contained in:
Matt Gibson
2022-03-14 20:12:31 -05:00
committed by addison
parent bb51485fbb
commit 3f0551e4f8
3 changed files with 3 additions and 3 deletions

View File

@@ -467,7 +467,7 @@ export class LoginCommand {
} catch (e) {
if (
e instanceof ErrorResponse ||
(e.constructor.name === "ErrorResponse" &&
(e.constructor.name === ErrorResponse.name &&
(e as ErrorResponse).message.includes("Captcha is invalid"))
) {
return badCaptcha;