Добавил в проверку на ios iPad и iPod

This commit is contained in:
dev.daminik00 2025-02-28 01:26:26 +01:00
parent b7f1dd58e2
commit 7bdc7bd2fe
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ function ScannedPhoto() {
); );
const onEndLoading = useCallback(() => { const onEndLoading = useCallback(() => {
const isIOS = /iPhone/i.test(navigator.userAgent); const isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent);
if (isIOSPath && !!authCode && isIOS) { if (isIOSPath && !!authCode && isIOS) {
return navigate(routes.client.compatibilityV2TryApp()); return navigate(routes.client.compatibilityV2TryApp());
} }

View File

@ -96,7 +96,7 @@ function ScannedPhoto() {
}, [currentElementIndex, drawElements.length]); }, [currentElementIndex, drawElements.length]);
const handleNext = () => { const handleNext = () => {
const isIOS = /iPhone/i.test(navigator.userAgent); const isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent);
if (isIOSPath && !!authCode && isIOS) { if (isIOSPath && !!authCode && isIOS) {
return navigate(routes.client.palmistryV1TryApp()); return navigate(routes.client.palmistryV1TryApp());
} }