mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 12:46:15 -08:00
add isAndroid and isiOS
This commit is contained in:
1 parent
42d43dfd15
commit
112256ddd7
2 files changed
+3
No files matched your search
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
- 弹幕库监听 resize 事件,当输入框少于 150px 时,自动隐藏弹幕输入框
|
||||
- 修复弹幕输入框的固定宽度 bug
|
||||
- 设置面板支持 range 和 onRange 选项
|
||||
- 添加 isAndroid 和 isiOS 工具函数
|
||||
|
||||
## [4.4.0] - 2022-05-15
|
||||
|
||||
|
||||
@@ -3,3 +3,5 @@ export const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Oper
|
||||
export const isSafari = /^((?!chrome|android).)*safari/i.test(userAgent);
|
||||
export const isWechat = /MicroMessenger/i.test(userAgent);
|
||||
export const isIE = /MSIE|Trident/i.test(userAgent);
|
||||
export const isAndroid = /android/i.test(userAgent);
|
||||
export const isiOS = /iPad|iPhone|iPod/.test(userAgent) && !window.MSStream;
|
||||
Reference in new issue
Block a user