Fix check

pull/21833/head
Richard Lewis 2017-12-01 16:31:39 +00:00
parent 024aefe131
commit 81f7f805fa
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ function onMessage(event) {
// Event origin is empty string if undefined
if (
event.origin.length === 0 ||
trustedEndpoint(event.origin) ||
!trustedEndpoint(event.origin) ||
event.data.api !== "widget" ||
!event.data.widgetId
) {