Добавил в проверку на ios iPad и iPod
This commit is contained in:
parent
b7f1dd58e2
commit
7bdc7bd2fe
@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user