mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content server: Fix detection of iOS on iPAD with iOS 13 which defaults to desktop mode
This commit is contained in:
parent
4a3df07974
commit
b17b3f358d
@ -8,6 +8,9 @@ from book_list.theme import get_font_family
|
||||
|
||||
|
||||
is_ios = v'!!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform)'
|
||||
if !is_ios and window.navigator.platform is 'MacIntel' and window.navigator.maxTouchPoints > 1:
|
||||
# iPad Safari in desktop mode https://stackoverflow.com/questions/57765958/how-to-detect-ipad-and-ipad-os-version-in-ios-13-and-up
|
||||
is_ios = True
|
||||
|
||||
|
||||
def debounce(func, wait, immediate=False):
|
||||
|
Loading…
x
Reference in New Issue
Block a user