mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-10 06:42:49 +02:00
fix: pulltorefresh enabled globally
This commit is contained in:
@@ -6,7 +6,7 @@ const isIosPwa = () => {
|
|||||||
const ua = window.navigator.userAgent.toLowerCase();
|
const ua = window.navigator.userAgent.toLowerCase();
|
||||||
const isIos = /iphone|ipad|ipod/.test(ua) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
|
const isIos = /iphone|ipad|ipod/.test(ua) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
|
||||||
const isStandalone = window.navigator.standalone === true || window.matchMedia('(display-mode: standalone)').matches;
|
const isStandalone = window.navigator.standalone === true || window.matchMedia('(display-mode: standalone)').matches;
|
||||||
return true || isIos && isStandalone;
|
return isIos && isStandalone;
|
||||||
};
|
};
|
||||||
|
|
||||||
const ptrMarkup = `
|
const ptrMarkup = `
|
||||||
|
|||||||
Reference in New Issue
Block a user