abort loading several pages if embedded
parent
4344f4410b
commit
70f50711bf
|
@ -13,6 +13,9 @@ define([
|
|||
'/common/common-interface.js',
|
||||
], function (nThen, ApiConfig, $, RequireConfig, SFCommonO,
|
||||
Cryptpad, Util, Hash, Realtime, Constants, UI) {
|
||||
if (window.top !== window) {
|
||||
return void window.alert(`If you are seeing this message then somebody might be trying to compromise your CryptPad account. Please contact the CryptPad development team.`);
|
||||
}
|
||||
|
||||
window.Cryptpad = {
|
||||
Common: Cryptpad,
|
||||
|
|
|
@ -10,6 +10,7 @@ define([
|
|||
|
||||
'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
|
||||
], function ($, Cryptpad, Login, UI, Realtime, Feedback, LocalStore /*, Test */) {
|
||||
if (window.top !== window) { return; }
|
||||
$(function () {
|
||||
var $checkImport = $('#import-recent');
|
||||
if (LocalStore.isLoggedIn()) {
|
||||
|
|
|
@ -14,6 +14,7 @@ define([
|
|||
|
||||
'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
|
||||
], function ($, Login, Cryptpad, /*Test,*/ Cred, UI, Util, Realtime, Constants, Feedback, LocalStore, h) {
|
||||
if (window.top !== window) { return; }
|
||||
var Messages = Cryptpad.Messages;
|
||||
$(function () {
|
||||
if (LocalStore.isLoggedIn()) {
|
||||
|
|
Loading…
Reference in New Issue