mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add calibre version to the user agent for the viewer
This commit is contained in:
parent
4abd16a4a5
commit
e6c8a8d4bb
@ -68,6 +68,9 @@ class Document(QWebPage): # {{{
|
||||
settings_changed = pyqtSignal()
|
||||
animated_scroll_done_signal = pyqtSignal()
|
||||
|
||||
def userAgentForUrl(self, url):
|
||||
return QWebPage.userAgentForUrl(self, url).replace('libprs500', 'calibre (libprs500)/%s' % __version__)
|
||||
|
||||
def set_font_settings(self, opts):
|
||||
settings = self.settings()
|
||||
apply_settings(settings, opts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user