null check on u2f data
This commit is contained in:
parent
2fe65e27e2
commit
57ce9d5315
|
@ -63,7 +63,8 @@ export class U2f {
|
|||
}
|
||||
|
||||
private validMessage(event: any) {
|
||||
if (!event.origin || event.origin === '' || event.origin !== (this.connectorLink as any).origin) {
|
||||
if (!event.origin || event.origin === '' ||
|
||||
event.origin !== (this.connectorLink as any).origin || !event.data) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue