diff --git a/src/angular/pipes/search-ciphers.pipe.ts b/src/angular/pipes/search-ciphers.pipe.ts index e81371c4e8..2b0e442a90 100644 --- a/src/angular/pipes/search-ciphers.pipe.ts +++ b/src/angular/pipes/search-ciphers.pipe.ts @@ -5,20 +5,12 @@ import { import { CipherView } from '../../models/view/cipherView'; -import { PlatformUtilsService } from '../../abstractions/platformUtils.service'; - -import { DeviceType } from '../../enums'; - @Pipe({ name: 'searchCiphers', }) export class SearchCiphersPipe implements PipeTransform { private onlySearchName = false; - constructor(platformUtilsService: PlatformUtilsService) { - this.onlySearchName = platformUtilsService.getDevice() === DeviceType.EdgeExtension; - } - transform(ciphers: CipherView[], searchText: string): CipherView[] { if (ciphers == null || ciphers.length === 0) { return []; diff --git a/src/services/search.service.ts b/src/services/search.service.ts index 550a6ab933..7cc1b91e60 100644 --- a/src/services/search.service.ts +++ b/src/services/search.service.ts @@ -3,11 +3,9 @@ import * as lunr from 'lunr'; import { CipherView } from '../models/view/cipherView'; import { CipherService } from '../abstractions/cipher.service'; -import { PlatformUtilsService } from '../abstractions/platformUtils.service'; import { SearchService as SearchServiceAbstraction } from '../abstractions/search.service'; import { CipherType } from '../enums/cipherType'; -import { DeviceType } from '../enums/deviceType'; import { FieldType } from '../enums/fieldType'; import { UriMatchType } from '../enums/uriMatchType'; @@ -16,10 +14,7 @@ export class SearchService implements SearchServiceAbstraction { private index: lunr.Index = null; private onlySearchName = false; - constructor(private cipherService: CipherService, platformUtilsService: PlatformUtilsService) { - this.onlySearchName = platformUtilsService == null || - platformUtilsService.getDevice() === DeviceType.EdgeExtension; - } + constructor(private cipherService: CipherService) { } clearIndex(): void { this.index = null;