1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +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) {
$uibModalStack.dismissAll();
var user = $filter('filter')($scope.users, { id: $state.params.viewEvents });
if (user && user.length) {
$scope.events(user[0]);
var eventUser = $filter('filter')($scope.users, { id: $state.params.viewEvents });
if (eventUser && eventUser.length) {
$scope.events(eventUser[0]);
}
}
});

View File

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

View File

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

View File

@ -23,7 +23,7 @@ angular
_browserCache = constants.deviceType.firefox;
}
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;
}
else if (!!document.documentMode) {