PAMapp/shared/services/utils.service.ts
File was renamed from PAMapp/assets/ts/device.ts @@ -1,4 +1,10 @@ export function isMobileDevice(): boolean { class UtilsService { isMobileDevice(): boolean { const mobileDevices = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone']; return mobileDevices.some(e => navigator.userAgent.match(e)); } } export default new UtilsService();