mirror of https://github.com/keeweb/keeweb.git
fix #648: auto-type on subdomains
This commit is contained in:
parent
62cdb32423
commit
4ec08bf50e
|
@ -46,8 +46,12 @@ AutoTypeFilter.prototype.getEntryRank = function(entry) {
|
||||||
if (entryUrlParts) {
|
if (entryUrlParts) {
|
||||||
const [, scheme, domain, path] = entryUrlParts;
|
const [, scheme, domain, path] = entryUrlParts;
|
||||||
const [, thisScheme, thisDomain, thisPath] = this.urlParts;
|
const [, thisScheme, thisDomain, thisPath] = this.urlParts;
|
||||||
if (domain === thisDomain) {
|
if (domain === thisDomain || thisDomain.indexOf('.' + domain) > 0) {
|
||||||
rank += 10;
|
if (domain === thisDomain) {
|
||||||
|
rank += 20;
|
||||||
|
} else {
|
||||||
|
rank += 10;
|
||||||
|
}
|
||||||
if (path === thisPath) {
|
if (path === thisPath) {
|
||||||
rank += 10;
|
rank += 10;
|
||||||
} else if (path && thisPath) {
|
} else if (path && thisPath) {
|
||||||
|
|
|
@ -12,6 +12,7 @@ Release notes
|
||||||
`*` password can be hidden as other fields
|
`*` password can be hidden as other fields
|
||||||
`*` clear clipboard on exit
|
`*` clear clipboard on exit
|
||||||
`*` don't remove spaces in custom fields
|
`*` don't remove spaces in custom fields
|
||||||
|
`*` auto-type on subdomains
|
||||||
|
|
||||||
##### v1.5.6 (2017-08-31)
|
##### v1.5.6 (2017-08-31)
|
||||||
`-` fix #722: hang on start in desktop
|
`-` fix #722: hang on start in desktop
|
||||||
|
|
Loading…
Reference in New Issue