This commit is contained in:
Kovid Goyal 2019-08-20 18:23:21 +05:30
parent 755cf383a3
commit 37bde2c949
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -119,6 +119,7 @@ def onclick(event):
tn = e.tagName.toLowerCase() if e.tagName else ''
href = e.getAttribute('href')
e = e.parentNode
if to_python.request_sync:
to_python.request_sync(tn, href, address)
return False
@ -130,6 +131,7 @@ def go_to_anchor(anchor):
if elem:
elem.scrollIntoView()
address = get_sourceline_address(elem)
if to_python.request_sync:
to_python.request_sync('', '', address)
@from_python