Add a note to not change the viewer user agent

This commit is contained in:
Kovid Goyal 2019-11-03 07:19:46 +05:30
parent c17411a39f
commit cb8b181daa
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: