mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
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
Block a user