1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

null check

This commit is contained in:
Kyle Spearrin 2018-09-27 08:32:48 -04:00
parent d1847690f2
commit fc1bcb34a0

View File

@ -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 {