Fix preview going to top anchor not working

This commit is contained in:
Kovid Goyal 2019-07-10 14:13:56 +05:30
parent 5067454aa4
commit 600f71fda6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -289,6 +289,8 @@ class WebPage(QWebEnginePage):
return False return False
def go_to_anchor(self, anchor): def go_to_anchor(self, anchor):
if anchor is TOP:
anchor = ''
self.bridge.go_to_anchor.emit(anchor or '') self.bridge.go_to_anchor.emit(anchor or '')
def runjs(self, src, callback=None): def runjs(self, src, callback=None):