儀表板
文件庫
filestore
活動
搜尋
登入
pcalife
/
PAM
保誠-保戶業務員媒合平台
匯總
相關日誌
提交
目錄
檔案區
分支(forks)
比對
究查
|
歷程
|
原始
refactor: separate api/appointment.ts into several services
Tomas
2021-12-22
23f7ec5f7cd67322617e623361a5620d405dfeda
[pcalife/PAM.git]
/
PAMapp
/
shared
/
device.ts
1
2
3
4
export function isMobileDevice(): boolean {
const mobileDevices = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone'];
return mobileDevices.some(e => navigator.userAgent.match(e));
}