Check runtime name vs mangled name (#724)
This commit is contained in:
parent
41b199ab83
commit
3ec0f6977a
|
@ -32,7 +32,7 @@ export class ApiActionDirective implements OnChanges {
|
|||
this.el.nativeElement.loading = false;
|
||||
|
||||
if (
|
||||
(e instanceof ErrorResponse || e.constructor.name === "ErrorResponse") &&
|
||||
(e instanceof ErrorResponse || e.constructor.name === ErrorResponse.name) &&
|
||||
(e as ErrorResponse).captchaRequired
|
||||
) {
|
||||
this.logService.error("Captcha required error response: " + e.getSingleMessage());
|
||||
|
|
|
@ -1029,7 +1029,7 @@ export class CipherService implements CipherServiceAbstraction {
|
|||
ciphers[c.id].revisionDate = c.revisionDate;
|
||||
};
|
||||
|
||||
if (cipher.constructor.name === "Array") {
|
||||
if (cipher.constructor.name === Array.name) {
|
||||
(cipher as { id: string; revisionDate: string }[]).forEach(clearDeletedDate);
|
||||
} else {
|
||||
clearDeletedDate(cipher as { id: string; revisionDate: string });
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue