Fix iframe check

This commit is contained in:
Alexandre Aubin 2019-02-22 21:30:13 +01:00
parent 7bc43392ce
commit b3bdb9e30b

View file

@ -205,7 +205,7 @@ document.addEventListener('DOMContentLoaded', function() {
// - this script is loaded inside the "regular" portal when going to /yunohost/sso. // - 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_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) if (in_app)
{ {