Code cleanup
This commit is contained in:
parent
a4cd0291a6
commit
2687b59373
@ -406,9 +406,9 @@ class WebEngineTab(browsertab.AbstractTab):
|
|||||||
])
|
])
|
||||||
script = QWebEngineScript()
|
script = QWebEngineScript()
|
||||||
script.setInjectionPoint(QWebEngineScript.DocumentCreation)
|
script.setInjectionPoint(QWebEngineScript.DocumentCreation)
|
||||||
page = self._widget.page()
|
|
||||||
script.setSourceCode(js_code)
|
script.setSourceCode(js_code)
|
||||||
|
|
||||||
|
page = self._widget.page()
|
||||||
try:
|
try:
|
||||||
page.runJavaScript("", QWebEngineScript.ApplicationWorld)
|
page.runJavaScript("", QWebEngineScript.ApplicationWorld)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user