From c3250378ee110721fc919e1ecfeb4c1040839f3f Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 30 Oct 2017 15:15:40 +0100 Subject: [PATCH] Rev3128, Allow modals for sites --- src/Config.py | 2 +- src/Ui/UiRequest.py | 5 +---- src/Ui/template/wrapper.html | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Config.py b/src/Config.py index 084042db..5dddecc3 100644 --- a/src/Config.py +++ b/src/Config.py @@ -10,7 +10,7 @@ class Config(object): def __init__(self, argv): self.version = "0.6.0" - self.rev = 3127 + self.rev = 3128 self.argv = argv self.action = None self.config_file = "zeronet.conf" diff --git a/src/Ui/UiRequest.py b/src/Ui/UiRequest.py index 7afa34b3..884f4bef 100644 --- a/src/Ui/UiRequest.py +++ b/src/Ui/UiRequest.py @@ -366,10 +366,7 @@ class UiRequest(object): if content.get("postmessage_nonce_security"): postmessage_nonce_security = "true" - if site.settings.get("own"): - sandbox_permissions = "allow-modals" # For coffeescript compile errors - else: - sandbox_permissions = "" + sandbox_permissions = "" if show_loadingscreen is None: show_loadingscreen = not site.storage.isFile(file_inner_path) diff --git a/src/Ui/template/wrapper.html b/src/Ui/template/wrapper.html index 39915ce2..4e6ae06f 100644 --- a/src/Ui/template/wrapper.html +++ b/src/Ui/template/wrapper.html @@ -51,7 +51,7 @@ if (window.self !== window.top && document.execCommand) document.execCommand("St - +