1
0
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:
Kyle Spearrin
2018-06-06 09:43:28 -04:00
parent db5a5e1b37
commit ce34ef902f
11 changed files with 198 additions and 18 deletions

View File

@@ -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;
}