Rev3128, Allow modals for sites
This commit is contained in:
parent
9d4515954b
commit
c3250378ee
3 changed files with 3 additions and 6 deletions
|
@ -10,7 +10,7 @@ class Config(object):
|
||||||
|
|
||||||
def __init__(self, argv):
|
def __init__(self, argv):
|
||||||
self.version = "0.6.0"
|
self.version = "0.6.0"
|
||||||
self.rev = 3127
|
self.rev = 3128
|
||||||
self.argv = argv
|
self.argv = argv
|
||||||
self.action = None
|
self.action = None
|
||||||
self.config_file = "zeronet.conf"
|
self.config_file = "zeronet.conf"
|
||||||
|
|
|
@ -366,10 +366,7 @@ class UiRequest(object):
|
||||||
if content.get("postmessage_nonce_security"):
|
if content.get("postmessage_nonce_security"):
|
||||||
postmessage_nonce_security = "true"
|
postmessage_nonce_security = "true"
|
||||||
|
|
||||||
if site.settings.get("own"):
|
sandbox_permissions = ""
|
||||||
sandbox_permissions = "allow-modals" # For coffeescript compile errors
|
|
||||||
else:
|
|
||||||
sandbox_permissions = ""
|
|
||||||
|
|
||||||
if show_loadingscreen is None:
|
if show_loadingscreen is None:
|
||||||
show_loadingscreen = not site.storage.isFile(file_inner_path)
|
show_loadingscreen = not site.storage.isFile(file_inner_path)
|
||||||
|
|
|
@ -51,7 +51,7 @@ if (window.self !== window.top && document.execCommand) document.execCommand("St
|
||||||
|
|
||||||
|
|
||||||
<!-- Site Iframe -->
|
<!-- 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 -->
|
<!-- Site info -->
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in a new issue