mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix preview going to top anchor not working
This commit is contained in:
parent
5067454aa4
commit
600f71fda6
@ -289,6 +289,8 @@ class WebPage(QWebEnginePage):
|
||||
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…
x
Reference in New Issue
Block a user