mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
don't load info pages in iframes
This commit is contained in:
parent
b014c4dbf1
commit
78bc424e84
@ -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');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user