mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Fix a regression that caused clicking on links in the preview panel that lead to destinations in the same HTML file popping up a spurious error message.
This commit is contained in:
parent
80154837bf
commit
65c073b11a
Binary file not shown.
@ -325,8 +325,8 @@ class PreviewIntegration
|
||||
elem = document.querySelector('[name="' + anchor + '"]')
|
||||
if elem
|
||||
elem.scrollIntoView()
|
||||
lnum = elem.getAttribute('data-lnum')
|
||||
window.py_bridge.request_sync('', '', lnum)
|
||||
address = get_sourceline_address(elem)
|
||||
window.py_bridge.request_sync('', '', address)
|
||||
|
||||
live_css: (sourceline, tags) =>
|
||||
target = null
|
||||
|
Loading…
x
Reference in New Issue
Block a user