儀表板
文件庫
filestore
活動
搜尋
登入
pcalife
/
PAM
保誠-保戶業務員媒合平台
匯總
相關日誌
提交
目錄
檔案區
分支(forks)
比對
究查
|
歷程
|
原始
Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM
Mila
2021-12-22
bdae23a40c461c2c6b6ee614f661eac731c949c8
[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));
}