1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-18 02:41:15 +02:00

lint fixes

This commit is contained in:
Kyle Spearrin 2017-12-19 12:15:24 -05:00
parent 0d2bf4f7a1
commit bf885c184f
4 changed files with 6 additions and 6 deletions

View File

@ -152,9 +152,9 @@
if ($state.params.viewEvents) { if ($state.params.viewEvents) {
$uibModalStack.dismissAll(); $uibModalStack.dismissAll();
var user = $filter('filter')($scope.users, { id: $state.params.viewEvents }); var eventUser = $filter('filter')($scope.users, { id: $state.params.viewEvents });
if (user && user.length) { if (eventUser && eventUser.length) {
$scope.events(user[0]); $scope.events(eventUser[0]);
} }
} }
}); });

View File

@ -2,7 +2,7 @@
.module('bit.organization') .module('bit.organization')
.controller('organizationVaultController', function ($scope, apiService, cipherService, $analytics, $q, $state, .controller('organizationVaultController', function ($scope, apiService, cipherService, $analytics, $q, $state,
$localStorage, $uibModal, $filter, authService, $filter, $uibModalStack) { $localStorage, $uibModal, $filter, authService, $uibModalStack) {
$scope.ciphers = []; $scope.ciphers = [];
$scope.collections = []; $scope.collections = [];
$scope.loading = true; $scope.loading = true;

View File

@ -1,7 +1,7 @@
angular angular
.module('bit.services') .module('bit.services')
.factory('eventService', function (constants, $filter, constants) { .factory('eventService', function (constants, $filter) {
var _service = {}; var _service = {};
_service.getDefaultDateFilters = function () { _service.getDefaultDateFilters = function () {

View File

@ -23,7 +23,7 @@ angular
_browserCache = constants.deviceType.firefox; _browserCache = constants.deviceType.firefox;
} }
else if (/constructor/i.test(window.HTMLElement) || else if (/constructor/i.test(window.HTMLElement) ||
safariCheck(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification))) { safariCheck(!window.safari || (typeof safari !== 'undefined' && safari.pushNotification))) {
_browserCache = constants.deviceType.opera; _browserCache = constants.deviceType.opera;
} }
else if (!!document.documentMode) { else if (!!document.documentMode) {