From ad66d15a334f2ed70fdd64fd799fd232ff8b6e0a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 6 Oct 2017 10:50:11 -0400 Subject: [PATCH] null check utilsService --- src/popup/app/global/mainController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/popup/app/global/mainController.js b/src/popup/app/global/mainController.js index 75fe2f0701..2a2e710b72 100644 --- a/src/popup/app/global/mainController.js +++ b/src/popup/app/global/mainController.js @@ -9,8 +9,8 @@ angular self.xsBody = $window.screen.availHeight < 600; self.smBody = !self.xsBody && $window.screen.availHeight <= 800; self.lgBody = !self.xsBody && !self.smBody && utilsService && !utilsService.isFirefox() && !utilsService.isEdge(); - self.disableSearch = utilsService.isEdge(); - self.inSidebar = utilsService.inSidebar($window); + self.disableSearch = utilsService && utilsService.isEdge(); + self.inSidebar = utilsService && utilsService.inSidebar($window); $scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) { if (toParams.animation) {