Improve line breaking
This commit is contained in:
parent
620b952bb2
commit
f4022a86fd
@ -624,8 +624,8 @@ class WebKitTab(browsertab.AbstractTab):
|
||||
def run_js_async(self, code, callback=None, *, world=None):
|
||||
if world is not None and world != usertypes.JsWorld.jseval:
|
||||
log.webview.warning("Ignoring world ID {}".format(world))
|
||||
result = self._widget.page().mainFrame().documentElement() \
|
||||
.evaluateJavaScript(code)
|
||||
document_element = self._widget.page().mainFrame().documentElement()
|
||||
result = document_element.evaluateJavaScript(code)
|
||||
if callback is not None:
|
||||
callback(result)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user