You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/configuration/vite.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ We define a few useful globally available variables that you can use to alter lo
179
179
```
180
180
-`__ANDROID__`, `true` when the platform is Android
181
181
```ts
182
-
if (global.isAndroid) {
182
+
if (__ANDROID__) {
183
183
// we are running on android
184
184
}
185
185
```
@@ -189,6 +189,12 @@ We define a few useful globally available variables that you can use to alter lo
189
189
// we are running on iOS
190
190
}
191
191
```
192
+
-`__VISIONOS__`, `true` when the platform is visionOS
193
+
```ts
194
+
if (__VISIONOS__) {
195
+
// we are running on visionOS
196
+
}
197
+
```
192
198
193
199
::: details The following variables are also defined, but are primarily intended to be used by NativeScript Core internally, or plugins that wish to use these.
0 commit comments