Rev3128, Allow modals for sites

This commit is contained in:
shortcutme 2017-10-30 15:15:40 +01:00
parent 9d4515954b
commit c3250378ee
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
3 changed files with 3 additions and 6 deletions

View File

@ -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"

View File

@ -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)

View File

@ -51,7 +51,7 @@ if (window.self !== window.top && document.execCommand) document.execCommand("St
<!-- Site Iframe -->
<iframe src='about:blank' id='inner-iframe' sandbox="allow-forms allow-scripts allow-top-navigation allow-popups {sandbox_permissions}"></iframe>
<iframe src='about:blank' id='inner-iframe' sandbox="allow-forms allow-scripts allow-top-navigation allow-popups allow-modals {sandbox_permissions}"></iframe>
<!-- Site info -->
<script>