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