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:
Kovid Goyal 2014-08-03 07:35:50 +05:30
parent 80154837bf
commit 65c073b11a
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -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