mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
Remove old IE Edge hacks
This commit is contained in:
@@ -59,7 +59,7 @@ describe('Browser Utils Service', () => {
|
||||
it('should detect edge', () => {
|
||||
Object.defineProperty(navigator, 'userAgent', {
|
||||
configurable: true,
|
||||
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; ServiceUI 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063',
|
||||
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.74 Safari/537.36 Edg/79.0.309.43',
|
||||
});
|
||||
|
||||
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null);
|
||||
|
||||
@@ -32,7 +32,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||
} else if ((!!(window as any).opr && !!opr.addons) || !!(window as any).opera ||
|
||||
navigator.userAgent.indexOf(' OPR/') >= 0) {
|
||||
this.deviceCache = DeviceType.OperaExtension;
|
||||
} else if (navigator.userAgent.indexOf(' Edge/') !== -1) {
|
||||
} else if (navigator.userAgent.indexOf(' Edg/') !== -1) {
|
||||
this.deviceCache = DeviceType.EdgeExtension;
|
||||
} else if (navigator.userAgent.indexOf(' Vivaldi/') !== -1) {
|
||||
this.deviceCache = DeviceType.VivaldiExtension;
|
||||
|
||||
Reference in New Issue
Block a user