Get rid of the no longer needed user agent override in the viewer

This commit is contained in:
Kovid Goyal 2016-09-14 18:31:41 +05:30
parent 34ebda86a5
commit 0f6be31b89

View File

@ -68,9 +68,6 @@ 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)