diff --git a/src/app/config.js b/src/app/config.js index 90d5775ecc..8509faa074 100644 --- a/src/app/config.js +++ b/src/app/config.js @@ -61,7 +61,7 @@ angular $httpProvider.defaults.headers.get = {}; } $httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache'; - $httpProvider.defaults.headers.get['Pragma'] = 'no-cache'; + $httpProvider.defaults.headers.get.Pragma = 'no-cache'; } $httpProvider.interceptors.push('apiInterceptor'); diff --git a/src/app/directives/totpDirective.js b/src/app/directives/totpDirective.js index 332b9ebb4b..3d11b081cb 100644 --- a/src/app/directives/totpDirective.js +++ b/src/app/directives/totpDirective.js @@ -43,7 +43,7 @@ angular bytes[i / 2] = parseInt(s.substr(i, 2), 16); } return bytes; - } + }; var buff2hex = function (buff) { var bytes = new Uint8Array(buff); @@ -53,12 +53,13 @@ angular hex.push((bytes[i] & 0xF).toString(16)); } return hex.join(''); - } + }; var b32tohex = function (s) { s = s.toUpperCase(); var cleanedInput = ''; - for (var i = 0; i < s.length; i++) { + var i; + for (i = 0; i < s.length; i++) { if (b32Chars.indexOf(s[i]) < 0) { continue; } @@ -69,14 +70,14 @@ angular var bits = ''; var hex = ''; - for (var i = 0; i < s.length; i++) { + for (i = 0; i < s.length; i++) { var byteIndex = b32Chars.indexOf(s.charAt(i)); if (byteIndex < 0) { continue; } bits += leftpad(byteIndex.toString(2), 5, '0'); } - for (var i = 0; i + 4 <= bits.length; i += 4) { + for (i = 0; i + 4 <= bits.length; i += 4) { var chunk = bits.substr(i, 4); hex = hex + parseInt(chunk, 2).toString(16); } @@ -121,7 +122,7 @@ angular return otp; }); }; - } + }; var totp = new Totp(); @@ -151,7 +152,7 @@ angular scope.sec = sec; scope.dash = (2.62 * mod).toFixed(2); scope.low = sec <= 7; - if (mod == 0) { + if (mod === 0) { updateCode(scope); } }); diff --git a/src/app/global/paidOrgRequiredController.js b/src/app/global/paidOrgRequiredController.js index 9d2abb74d8..e303d5428c 100644 --- a/src/app/global/paidOrgRequiredController.js +++ b/src/app/global/paidOrgRequiredController.js @@ -6,7 +6,7 @@ angular $analytics.eventTrack('paidOrgRequiredController', { category: 'Modal' }); authService.getUserProfile().then(function (profile) { - $scope.admin = profile.organizations[orgId].type !== constants.orgUserType.user + $scope.admin = profile.organizations[orgId].type !== constants.orgUserType.user; }); $scope.go = function () { diff --git a/src/app/organization/organizationVaultAttachmentsController.js b/src/app/organization/organizationVaultAttachmentsController.js index d6514496ec..cc98847b22 100644 --- a/src/app/organization/organizationVaultAttachmentsController.js +++ b/src/app/organization/organizationVaultAttachmentsController.js @@ -41,7 +41,7 @@ validationService.addError(form, 'file', 'Something went wrong.', true); } }); - } + }; $scope.download = function (attachment) { attachment.loading = true; diff --git a/src/app/services/cryptoService.js b/src/app/services/cryptoService.js index 9960fb272f..c9f38f446a 100644 --- a/src/app/services/cryptoService.js +++ b/src/app/services/cryptoService.js @@ -351,7 +351,7 @@ angular var cipherString = iv + '|' + ct; if (encValue.mac) { - var mac = forge.util.encode64(encValue.mac) + var mac = forge.util.encode64(encValue.mac); cipherString = cipherString + '|' + mac; } @@ -362,7 +362,7 @@ angular return aesEncryptWC(plainValue, key).then(function (encValue) { var macLen = 0; if (encValue.mac) { - macLen = encValue.mac.length + macLen = encValue.mac.length; } var encBytes = new Uint8Array(1 + encValue.iv.length + macLen + encValue.ct.length); diff --git a/src/app/services/importService.js b/src/app/services/importService.js index 3c18b25206..0e9b374589 100644 --- a/src/app/services/importService.js +++ b/src/app/services/importService.js @@ -2504,7 +2504,7 @@ if (item.attributes.hasOwnProperty(attr) && attr !== 'username_value' && attr !== 'xdg:schema') { if (login.notes !== '') { - login.notes += '\n' + login.notes += '\n'; } login.notes += (attr + ': ' + item.attributes[attr]); } diff --git a/src/app/vault/vaultAttachmentsController.js b/src/app/vault/vaultAttachmentsController.js index d0dd788153..856052b90f 100644 --- a/src/app/vault/vaultAttachmentsController.js +++ b/src/app/vault/vaultAttachmentsController.js @@ -47,7 +47,7 @@ validationService.addError(form, 'file', 'Something went wrong.', true); } }); - } + }; $scope.download = function (attachment) { attachment.loading = true;