mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
dcc0818e81
commit
d7efe7d8f9
@ -165,6 +165,7 @@ class IframeWrapper:
|
|||||||
|
|
||||||
def create_wrapped_iframe(handlers, bootstrap_text, entry_point, kw):
|
def create_wrapped_iframe(handlers, bootstrap_text, entry_point, kw):
|
||||||
if ':' in entry_point:
|
if ':' in entry_point:
|
||||||
|
# this is a document loaded via the fake protocol from web_view.py
|
||||||
kw.src = entry_point
|
kw.src = entry_point
|
||||||
kw.sandbox = (kw.sandbox or '') + ' allow-same-origin'
|
kw.sandbox = (kw.sandbox or '') + ' allow-same-origin'
|
||||||
iframe = E.iframe(**kw)
|
iframe = E.iframe(**kw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user