Skip to content

Commit

Permalink
don't load info pages in iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
ansuz committed Apr 4, 2022
1 parent b014c4d commit 78bc424
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions customize.dist/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 78bc424

Please sign in to comment.