Skip to content

Commit ec8b953

Browse files
committed
fix: platform media query conditions
1 parent 25b6d48 commit ec8b953

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/native/conditions/media-query.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ function testComparison(mediaQuery: MediaCondition, effect: Effect): Boolean {
3838
const right = mediaQuery[2];
3939

4040
switch (mediaQuery[1]) {
41+
case "platform":
42+
return right === Platform.OS;
4143
case "prefers-color-scheme": {
4244
return right === colorScheme.get(effect);
4345
}

0 commit comments

Comments
 (0)