1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00:00

Remove old IE Edge hacks

This commit is contained in:
Chad Scharf
2020-09-15 10:50:45 -04:00
parent 8efb46eca2
commit dbbd07641a
20 changed files with 49 additions and 1271 deletions

View File

@@ -61,8 +61,7 @@ export class SettingsComponent implements OnInit {
}
async ngOnInit() {
const showOnLocked = !this.platformUtilsService.isFirefox() && !this.platformUtilsService.isEdge()
&& !this.platformUtilsService.isSafari();
const showOnLocked = !this.platformUtilsService.isFirefox() && !this.platformUtilsService.isSafari();
this.vaultTimeouts = [
{ name: this.i18nService.t('immediately'), value: 0 },
@@ -264,11 +263,6 @@ export class SettingsComponent implements OnInit {
}
export() {
if (this.platformUtilsService.isEdge()) {
BrowserApi.createNewTab('https://help.bitwarden.com/article/export-your-data/');
return;
}
this.router.navigate(['/export']);
}
@@ -327,10 +321,7 @@ export class SettingsComponent implements OnInit {
rate() {
this.analytics.eventTrack.next({ action: 'Rate Extension' });
let deviceType = this.platformUtilsService.getDevice();
if (window.navigator.userAgent.indexOf('Edg/') > -1) {
deviceType = DeviceType.EdgeExtension;
}
const deviceType = this.platformUtilsService.getDevice();
BrowserApi.createNewTab((RateUrls as any)[deviceType]);
}
}