mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Ignore all ports by default in Site Preferences
This commit is contained in:
parent
d433d8ac3d
commit
ea46fd747d
1 changed files with 2 additions and 2 deletions
|
|
@ -87,8 +87,8 @@ const siteMatch = function(site, url) {
|
||||||
const siteUrl = new URL(site);
|
const siteUrl = new URL(site);
|
||||||
const currentUrl = new URL(url);
|
const currentUrl = new URL(url);
|
||||||
|
|
||||||
// Match scheme and port
|
// Match scheme and port. If Site Preferences does not use a port, all ports are ignored.
|
||||||
if (siteUrl.protocol !== currentUrl.protocol || siteUrl.port !== currentUrl.port) {
|
if (siteUrl.protocol !== currentUrl.protocol || (siteUrl.port && siteUrl.port !== currentUrl.port)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue