mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Only use Qt bug workaround in the viewer
This commit is contained in:
parent
a179632356
commit
c17411a39f
@ -48,7 +48,7 @@ def absolute_path(path):
|
|||||||
|
|
||||||
|
|
||||||
def workaround_qt_bug(xhr, end_type, ok_code=200):
|
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'
|
end_type = 'load'
|
||||||
return end_type
|
return end_type
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user