mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 07:23:16 +02:00
Fix preview going to top anchor not working
This commit is contained in:
parent
5067454aa4
commit
600f71fda6
1 changed files with 2 additions and 0 deletions
|
|
@ -289,6 +289,8 @@ def acceptNavigationRequest(self, url, req_type, is_main_frame):
|
|||
return False
|
||||
|
||||
def go_to_anchor(self, anchor):
|
||||
if anchor is TOP:
|
||||
anchor = ''
|
||||
self.bridge.go_to_anchor.emit(anchor or '')
|
||||
|
||||
def runjs(self, src, callback=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue