Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(private mediaService: MediaService) {
const media = this.mediaService.media$.value;
if (media === Media.Mobile && this.useStaticIcon === undefined) {
this.useStaticIcon = true;
}
}
isMobile(): boolean {
return this.mediaService.getMedia() === Media.Mobile;
}
isMobile(): boolean {
return (
this.mediaService.getMedia() === Media.Mobile
);
}
constructor(private mediaService: MediaService) {
const media = this.mediaService.media$.value;
if (media === Media.Mobile && this.useStaticIcon === undefined) {
this.useStaticIcon = true;
}
}