mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
null check
This commit is contained in:
parent
d1847690f2
commit
fc1bcb34a0
@ -17,7 +17,8 @@ export class SearchService implements SearchServiceAbstraction {
|
|||||||
private onlySearchName = false;
|
private onlySearchName = false;
|
||||||
|
|
||||||
constructor(private cipherService: CipherService, platformUtilsService: PlatformUtilsService) {
|
constructor(private cipherService: CipherService, platformUtilsService: PlatformUtilsService) {
|
||||||
this.onlySearchName = platformUtilsService.getDevice() === DeviceType.EdgeExtension;
|
this.onlySearchName = platformUtilsService == null ||
|
||||||
|
platformUtilsService.getDevice() === DeviceType.EdgeExtension;
|
||||||
}
|
}
|
||||||
|
|
||||||
clearIndex(): void {
|
clearIndex(): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user