mirror of
https://github.com/bitwarden/browser
synced 2026-01-03 09:03:32 +00:00
no need to just search name on edge any longer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user