mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
removed maxTouchPoints condition for detection of mobile browsers, #4316
This commit is contained in:
parent
148bff9f77
commit
5b2ba3646d
@ -68,8 +68,6 @@
|
||||
|
||||
// https://stackoverflow.com/a/73731646/944162
|
||||
function isMobile() {
|
||||
if ('maxTouchPoints' in navigator) return navigator.maxTouchPoints > 0;
|
||||
|
||||
const mQ = matchMedia?.('(pointer:coarse)');
|
||||
if (mQ?.media === '(pointer:coarse)') return !!mQ.matches;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user