ios support
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user