ios support

This commit is contained in:
2024-03-04 17:21:11 +05:00
parent e95c468308
commit 67d7e2230e
3 changed files with 33 additions and 17 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ const MobileApartmentPage = () => {
const { unityProvider, sendMessage, addEventListener, removeEventListener } =
useUnity();
const [isContainerLoaded, setIsContainerLoaded] = useState(false);
const isDeviceSupported = (Number(osVersion) > 17 && isIOS) || !isIOS;
const isDeviceSupported = (+osVersion.split(".")[0] >= 17 && isIOS) || !isIOS;
useEffect(() => {
if (!isDeviceSupported) {