Skip to content

Commit 02b66fb

Browse files
authored
[FIX] Fix previous refactor of platform API (playcanvas#3057)
1 parent 43e5f06 commit 02b66fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/platform.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ if (typeof navigator !== 'undefined') {
1919
xbox = true;
2020

2121
if (/(windows phone|iemobile|wpdesktop)/i.test(ua)) {
22+
desktop = false;
2223
mobile = true;
2324
windows = true;
2425
} else if (/android/i.test(ua)) {
26+
desktop = false;
2527
mobile = true;
2628
android = true;
2729
} else if (/ip([ao]d|hone)/i.test(ua)) {
30+
desktop = false;
2831
mobile = true;
2932
ios = true;
3033
}

0 commit comments

Comments
 (0)