Merge pull request #1159 from matrix-org/rav/uia_fallback_postmessage

window.postmessage for Interactive Auth fallback
This commit is contained in:
Richard van der Hoff 2016-10-06 19:56:43 +01:00 committed by GitHub
commit 5d34e32d42

View file

@ -77,8 +77,10 @@ SUCCESS_TEMPLATE = """
user-scalable=no, minimum-scale=1.0, maximum-scale=1.0'>
<link rel="stylesheet" href="/_matrix/static/client/register/style.css">
<script>
if (window.onAuthDone != undefined) {
if (window.onAuthDone) {
window.onAuthDone();
} else if (window.opener && window.opener.postMessage) {
window.opener.postMessage("authDone", "*");
}
</script>
</head>