Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Sep 27, 2018
1 parent d184769 commit fc1bcb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export class SearchService implements SearchServiceAbstraction {
private onlySearchName = false;

constructor(private cipherService: CipherService, platformUtilsService: PlatformUtilsService) {
this.onlySearchName = platformUtilsService.getDevice() === DeviceType.EdgeExtension;
this.onlySearchName = platformUtilsService == null ||
platformUtilsService.getDevice() === DeviceType.EdgeExtension;
}

clearIndex(): void {
Expand Down

0 comments on commit fc1bcb3

Please sign in to comment.