1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

null check on u2f data

This commit is contained in:
Kyle Spearrin 2018-07-21 09:59:37 -04:00
parent 2fe65e27e2
commit 57ce9d5315

View File

@ -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;
}