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