1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-10 12:33:26 +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

@@ -16,10 +16,6 @@ export class LaunchGuardService implements CanActivate {
async canActivate() {
if (BrowserApi.getBackgroundPage() == null) {
if (BrowserApi.isEdge18) {
// tslint:disable-next-line
console.log('getBackgroundPage is null from launch guard.');
}
this.router.navigate(['private-mode']);
return false;
}

View File

@@ -1,12 +1,10 @@
import { CipherService } from 'jslib/abstractions/cipher.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { SearchService } from 'jslib/services/search.service';
export class PopupSearchService extends SearchService {
constructor(private mainSearchService: SearchService, cipherService: CipherService,
platformUtilsService: PlatformUtilsService) {
super(cipherService, platformUtilsService);
constructor(private mainSearchService: SearchService, cipherService: CipherService) {
super(cipherService);
}
clearIndex() {

View File

@@ -39,12 +39,6 @@ export class PopupUtilsService {
popOut(win: Window): void {
let href = win.location.href;
if (this.platformUtilsService.isEdge()) {
const popupIndex = href.indexOf('/popup/');
if (popupIndex > -1) {
href = href.substring(popupIndex);
}
}
if ((typeof chrome !== 'undefined') && chrome.windows && chrome.windows.create) {
if (href.indexOf('?uilocation=') > -1) {

View File

@@ -70,7 +70,7 @@ export const authService = new AuthService(getBgService<CryptoService>('cryptoSe
getBgService<I18nService>('i18nService')(), getBgService<PlatformUtilsService>('platformUtilsService')(),
messagingService, getBgService<VaultTimeoutService>('vaultTimeoutService')(), null);
export const searchService = new PopupSearchService(getBgService<SearchService>('searchService')(),
getBgService<CipherService>('cipherService')(), getBgService<PlatformUtilsService>('platformUtilsService')());
getBgService<CipherService>('cipherService')());
export function initFactory(i18nService: I18nService, storageService: StorageService,
popupUtilsService: PopupUtilsService): Function {