Skip to content

Commit

Permalink
reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
plessbd committed Jan 15, 2020
1 parent 3f50381 commit d5177e0
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions html/gui/general/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,18 @@
</style>
<script type="text/javascript">
function loadPortal() {
setTimeout(function(){
parent.location.href = '/index.php' + document.location.hash;
}, 1500);
try {
var href = window.top.location.href;
setTimeout(function(){
parent.location.href = '/index.php' + document.location.hash;
}, 1500);
}
catch(exception){
window.top.postMessage({
application:'xdmod',
action: 'loginComplete'
},'*');
}
}

function contactAdmin() {
Expand Down Expand Up @@ -81,7 +90,7 @@ function contactAdmin() {
window.top.postMessage({
application:'xdmod',
action: 'error',
info: '<?php echo $message; ?>'
info: <?php echo json_encode($message); ?>
},'*');
}
</script>
Expand All @@ -90,7 +99,7 @@ function contactAdmin() {
<?php
} else {
?>
<body>
<body onload="loadPortal()">
<center>
<table border=0 width=100% height=100%>
<tr>
Expand All @@ -108,18 +117,6 @@ function contactAdmin() {
</tr>
</table>
</center>
<script>
try {
var href = window.top.location.href;
loadPortal();
}
catch(exception){
window.top.postMessage({
application:'xdmod',
action: 'loginComplete'
},'*');
}
</script>
</body>
</html>

Expand Down

0 comments on commit d5177e0

Please sign in to comment.