fix #1108: setting for running in an iframe

This commit is contained in:
antelle 2019-10-06 08:28:59 +02:00
parent dcce37d99e
commit 63aee0e876
3 changed files with 8 additions and 1 deletions

View File

@ -28,7 +28,7 @@ import 'hbs-helpers';
const ready = (Launcher && Launcher.ready) || $;
ready(() => {
if (AuthReceiver.receive() || Features.isFrame) {
if (AuthReceiver.receive()) {
return;
}
@ -46,6 +46,11 @@ ready(() => {
});
function ensureCanRun() {
if (Features.isFrame && !appModel.settings.allowIframes) {
return Promise.reject(
'Running in iframe is not allowed (this can be changed in the app config).'
);
}
return FeatureTester.test().catch(e => {
Alerts.error({
header: Locale.appSettingsError,

View File

@ -61,6 +61,7 @@ AppSettingsModel.defineModelProperties(
generatorPresets: null,
generatorHidePassword: false,
cacheConfigSettings: false,
allowIframes: false,
canOpen: true,
canOpenDemo: true,

View File

@ -2,6 +2,7 @@ Release notes
-------------
##### v1.12.0 (TBD)
`-` #1022: fuzzy search
`+` #1108: setting for running in an iframe
`-` fix #1273: untranslated menu items
##### v1.11.6 (2019-10-04)