null check on u2f data

This commit is contained in:
Kyle Spearrin 2018-07-21 09:59:37 -04:00
parent 2fe65e27e2
commit 57ce9d5315
1 changed files with 2 additions and 1 deletions

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