mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a note to not change the viewer user agent
This commit is contained in:
parent
c17411a39f
commit
cb8b181daa
@ -211,6 +211,8 @@ def create_profile():
|
||||
if ans is None:
|
||||
ans = QWebEngineProfile(QApplication.instance())
|
||||
osname = 'windows' if iswindows else ('macos' if isosx else 'linux')
|
||||
# DO NOT change the user agent as it is used to workaround
|
||||
# Qt bugs see workaround_qt_bug() in ajax.pyj
|
||||
ua = 'calibre-viewer {} {}'.format(__version__, osname)
|
||||
ans.setHttpUserAgent(ua)
|
||||
if is_running_from_develop:
|
||||
|
Loading…
x
Reference in New Issue
Block a user