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):
|
def run_js_async(self, code, callback=None, *, world=None):
|
||||||
if world is not None and world != usertypes.JsWorld.jseval:
|
if world is not None and world != usertypes.JsWorld.jseval:
|
||||||
log.webview.warning("Ignoring world ID {}".format(world))
|
log.webview.warning("Ignoring world ID {}".format(world))
|
||||||
result = self._widget.page().mainFrame().documentElement() \
|
document_element = self._widget.page().mainFrame().documentElement()
|
||||||
.evaluateJavaScript(code)
|
result = document_element.evaluateJavaScript(code)
|
||||||
if callback is not None:
|
if callback is not None:
|
||||||
callback(result)
|
callback(result)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user