|
|
@ -637,10 +637,11 @@ 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// close the popup
|
|
|
|
// close the popup
|
|
|
|
popupWindow.close();
|
|
|
|
popupWindow.close();
|
|
|
|
window.removeEventListener("message", eventListener);
|
|
|
|
window.removeEventListener("message", eventListener);
|
|
|
|