mirror of https://github.com/vector-im/riot-web
Fix check
parent
024aefe131
commit
81f7f805fa
|
@ -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
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue