diff --git a/src/background.js b/src/background.js index c045414c22..70a656ef31 100644 --- a/src/background.js +++ b/src/background.js @@ -457,7 +457,7 @@ var bg_isBackground = true, menuOptionsLoaded = []; bg_cipherService.getAllDecryptedForDomain(tabDomain).then(function (logins) { - logins.sort(bg_cipherService.sortLoginsByLastUsedThenName); + logins.sort(bg_cipherService.sortCiphersByLastUsedThenName); if (contextMenuEnabled) { for (var i = 0; i < logins.length; i++) { diff --git a/src/services/cipherService.js b/src/services/cipherService.js index e191d8957f..0492ecaa75 100644 --- a/src/services/cipherService.js +++ b/src/services/cipherService.js @@ -576,10 +576,10 @@ function initCipherService() { return deferred.promise; }; - CipherService.prototype.sortLoginsByLastUsed = sortLoginsByLastUsed; + CipherService.prototype.sortCiphersByLastUsed = sortCiphersByLastUsed; - CipherService.prototype.sortLoginsByLastUsedThenName = function (a, b) { - var result = sortLoginsByLastUsed(a, b); + CipherService.prototype.sortCiphersByLastUsedThenName = function (a, b) { + var result = sortCiphersByLastUsed(a, b); if (result !== 0) { return result; } @@ -597,7 +597,7 @@ function initCipherService() { return 0; }; - function sortLoginsByLastUsed(a, b) { + function sortCiphersByLastUsed(a, b) { var aLastUsed = a.localData && a.localData.lastUsedDate ? a.localData.lastUsedDate : null; var bLastUsed = b.localData && b.localData.lastUsedDate ? b.localData.lastUsedDate : null;