1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

fix sortUriMatch

This commit is contained in:
Kyle Spearrin 2017-11-23 10:37:14 -05:00
parent 56c1ca7d2f
commit ed28816b99

View File

@ -143,7 +143,7 @@ export class CurrentController {
private sortUriMatch(cipher: any) { private sortUriMatch(cipher: any) {
// exact matches should sort earlier. // exact matches should sort earlier.
return this.url && this.url.startsWith(cipher.uri) ? 0 : 1; return cipher.login && cipher.login.uri && this.url && this.url.startsWith(cipher.login.uri) ? 0 : 1;
} }
private sortLastUsed(cipher: any) { private sortLastUsed(cipher: any) {