mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-20 02:14:10 +01:00
uia fallback example: check event origin
This commit is contained in:
parent
e850fd718d
commit
6c88d698ae
|
|
@ -637,7 +637,8 @@ handle unknown login types:
|
||||||
var popupWindow;
|
var popupWindow;
|
||||||
|
|
||||||
var eventListener = function(ev) {
|
var eventListener = function(ev) {
|
||||||
if (ev.data !== "authDone" ) {
|
// check it's the right message from the right place.
|
||||||
|
if (ev.data !== "authDone" || ev.origin !== homeserverUrl) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue