mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Fix iframe check
This commit is contained in:
parent
7bc43392ce
commit
b3bdb9e30b
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
// - this script is loaded inside the "regular" portal when going to /yunohost/sso.
|
||||
|
||||
var in_app = ! document.body.classList.contains('ynh-user-portal');
|
||||
var in_overlay_iframe = (window.self === window.top);
|
||||
var in_overlay_iframe = (window.location != window.parent.location);
|
||||
|
||||
if (in_app)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue