Code cleanup

This commit is contained in:
Florian Bruhin 2016-09-02 16:26:36 +02:00
parent a4cd0291a6
commit 2687b59373

View File

@ -406,9 +406,9 @@ class WebEngineTab(browsertab.AbstractTab):
])
script = QWebEngineScript()
script.setInjectionPoint(QWebEngineScript.DocumentCreation)
page = self._widget.page()
script.setSourceCode(js_code)
page = self._widget.page()
try:
page.runJavaScript("", QWebEngineScript.ApplicationWorld)
except TypeError: