WebBrowser/WebBrowserWindow.py

changeset 6151
29564aad2f97
parent 6148
6c7af1e85e49
child 6155
ae44225e7e7c
--- a/WebBrowser/WebBrowserWindow.py	Thu Feb 15 19:05:22 2018 +0100
+++ b/WebBrowser/WebBrowserWindow.py	Fri Feb 16 20:11:36 2018 +0100
@@ -570,10 +570,9 @@
         settings.setAttribute(
             QWebEngineSettings.AutoLoadImages,
             Preferences.getWebBrowser("AutoLoadImages"))
-        # TODO: make this configurable as it is overwritten for pages that need it enabled
         settings.setAttribute(
             QWebEngineSettings.JavascriptEnabled,
-            True)
+            Preferences.getWebBrowser("JavaScriptEnabled"))
         # JavaScript is needed for the web browser functionality
         settings.setAttribute(
             QWebEngineSettings.JavascriptCanOpenWindows,

eric ide

mercurial