mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 19:16:07 +01:00
Only use Qt bug workaround in the viewer
This commit is contained in:
parent
a179632356
commit
c17411a39f
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ def absolute_path(path):
|
|||
|
||||
|
||||
def workaround_qt_bug(xhr, end_type, ok_code=200):
|
||||
if end_type is 'error' and xhr.status is ok_code:
|
||||
if end_type is 'error' and xhr.status is ok_code and window.navigator.userAgent.indexOf('calibre-viewer') is 0:
|
||||
end_type = 'load'
|
||||
return end_type
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue