mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 04:24:23 +00:00
Fix .torrent file upload on iPadOS
Mobile Safari on iOS does report `ios` platform, but iPadOS reports `mac` instead. It is common sense to check for touch points when this happens to differentiate Mac and iPad. PR #19822. Closes #19057. --------- Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
This commit is contained in:
parent
e7f38ec6ce
commit
e42d3f38cc
@ -167,7 +167,7 @@
|
|||||||
window.parent.closeWindows();
|
window.parent.closeWindows();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Browser.platform === 'ios') {
|
if ((Browser.platform === 'ios') || ((Browser.platform === 'mac') && (navigator.maxTouchPoints > 1))) {
|
||||||
$('fileselect').accept = ".torrent";
|
$('fileselect').accept = ".torrent";
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user