export default class AppService { param { Array < string > } supportedList returns { boolean } memberof static isDeviceSupported ( supportedList ) { return true ; if ( ! supportedList ) return true ; const mobileDetect = new MobileDetect ( navigator . userAgent ) ; let deviceKey = 'desktop' ; const isMobile = ! ! mobileDetect . mobile ( ) ; if ( isMobile ) { const isTablet = ! ! mobileDetect . tablet ( ) ; if ( isTablet ) { deviceKey = 'tablet' ; } else { deviceKey = 'mobile' ; } } return supportedList . includes ( deviceKey ) ; } }