From b3bdb9e30bd329e6d6d3b428dfaa998aff730a87 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 22 Feb 2019 21:30:13 +0100 Subject: [PATCH] Fix iframe check --- portal/assets/js/ynhpanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/assets/js/ynhpanel.js b/portal/assets/js/ynhpanel.js index bb7287e..5865082 100644 --- a/portal/assets/js/ynhpanel.js +++ b/portal/assets/js/ynhpanel.js @@ -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) {