Disabling webkit local file sandboxing

Signed-off-by: somas95 <manuel.genoves@gmail.com>
gh-pages
somas95 2018-03-04 20:36:07 +01:00
parent c7a018177b
commit 8499a98fc4
1 changed files with 2 additions and 0 deletions

View File

@ -693,6 +693,8 @@ class UberwriterWindow(Window):
# Load in Webview and scroll to #ID
self.webview = WebKit.WebView()
self.webview_settings = self.webview.get_settings()
self.webview_settings.set_allow_universal_access_from_file_urls(True)
self.webview.load_html(output.decode("utf-8"), 'file://localhost/')
# Delete the cursor-scroll mark again