Skip to content

Commit dd7c96d

Browse files
committed
fix(vite): conditional notes
1 parent 56aa071 commit dd7c96d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

content/configuration/vite.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ We define a few useful globally available variables that you can use to alter lo
179179
```
180180
- `__ANDROID__`, `true` when the platform is Android
181181
```ts
182-
if (global.isAndroid) {
182+
if (__ANDROID__) {
183183
// we are running on android
184184
}
185185
```
@@ -189,6 +189,12 @@ We define a few useful globally available variables that you can use to alter lo
189189
// we are running on iOS
190190
}
191191
```
192+
- `__VISIONOS__`, `true` when the platform is visionOS
193+
```ts
194+
if (__VISIONOS__) {
195+
// we are running on visionOS
196+
}
197+
```
192198

193199
::: 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.
194200

0 commit comments

Comments
 (0)