From fc1bcb34a0164c9674370833aa09498d573fd121 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 27 Sep 2018 08:32:48 -0400 Subject: [PATCH] null check --- src/services/search.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/search.service.ts b/src/services/search.service.ts index 84e73bcaa4..ff9fa07789 100644 --- a/src/services/search.service.ts +++ b/src/services/search.service.ts @@ -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 {