From 78bc424e84df9c7ce2f4d98dec106777a6f3ff9d Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 4 Apr 2022 16:38:18 +0530 Subject: [PATCH] don't load info pages in iframes --- customize.dist/template.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/customize.dist/template.js b/customize.dist/template.js index 0e9b3f2b9..a2b65cbec 100644 --- a/customize.dist/template.js +++ b/customize.dist/template.js @@ -6,6 +6,10 @@ define([ 'css!/bower_components/components-font-awesome/css/font-awesome.min.css', ], function ($, h, Pages, nThen) { + // we consider that there is no valid reason to load any of the info pages + // in an iframe. abort everything if you detect that you are embedded. + if (window.top !== window) { return; } + $(function () { var $body = $('body');