mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Get rid of the no longer needed user agent override in the viewer
This commit is contained in:
parent
34ebda86a5
commit
0f6be31b89
@ -68,9 +68,6 @@ class Document(QWebPage): # {{{
|
|||||||
settings_changed = pyqtSignal()
|
settings_changed = pyqtSignal()
|
||||||
animated_scroll_done_signal = 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):
|
def set_font_settings(self, opts):
|
||||||
settings = self.settings()
|
settings = self.settings()
|
||||||
apply_settings(settings, opts)
|
apply_settings(settings, opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user