儀表板
文件庫
filestore
活動
搜尋
登入
pcalife
/
PAM
保誠-保戶業務員媒合平台
匯總
相關日誌
提交
目錄
檔案區
分支(forks)
比對
究查
|
歷程
|
原始
refactor: separate api/consultant.ts into serveral services
Tomas
2021-12-22
f36e617e9e534a4b05f2029724d678bbd6c655b3
[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));
}