mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
stubbing out some layout
This commit is contained in:
@@ -33,6 +33,8 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
||||
this.deviceCache = DeviceType.Safari;
|
||||
} else if ((window as any).chrome && navigator.userAgent.indexOf(' Chrome/') !== -1) {
|
||||
this.deviceCache = DeviceType.Chrome;
|
||||
} else if (navigator.userAgent.indexOf(' Trident/') !== -1) {
|
||||
this.deviceCache = DeviceType.IE;
|
||||
}
|
||||
|
||||
return this.deviceCache;
|
||||
@@ -54,6 +56,10 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
||||
return this.getDevice() === DeviceType.Edge;
|
||||
}
|
||||
|
||||
isIE(): boolean {
|
||||
return this.getDevice() === DeviceType.IE;
|
||||
}
|
||||
|
||||
isOpera(): boolean {
|
||||
return this.getDevice() === DeviceType.Opera;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user