Skip to content

Commit c6e46a7

Browse files
committed
style: fix lint vs formatter conflict
1 parent 9fa4afb commit c6e46a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/platform.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ export const isMac = () => {
1414
}
1515
}
1616

17+
const pattern = /Mac|iPhone|iPad|iPod/u;
18+
1719
// Fallback to userAgent string parsing
18-
return (/Mac|iPhone|iPad|iPod/u).test(navigator.userAgent);
20+
return pattern.test(navigator.userAgent);
1921
};
2022

2123
/**

0 commit comments

Comments
 (0)