feat: typing on ios devices #286

This commit is contained in:
Hufe921
2023-09-23 22:14:19 +08:00
parent acdd107544
commit 8cf2b19d3d
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -1,2 +1,5 @@
export const isApple =
typeof navigator !== 'undefined' && /Mac OS X/.test(navigator.userAgent)
export const isIOS =
typeof navigator !== 'undefined' && /iPad|iPhone/.test(navigator.userAgent)