mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #2351 from keepassxreboot/fix/predefined_sites
Fix Predefined Sites for some pages
This commit is contained in:
commit
69e2986ad6
2 changed files with 5 additions and 3 deletions
|
|
@ -35,7 +35,8 @@ const PREDEFINED_SITELIST = [
|
|||
];
|
||||
|
||||
const IMPROVED_DETECTION_PREDEFINED_SITELIST = [
|
||||
'https://secure.chase.com/*'
|
||||
'https://secure.chase.com/*',
|
||||
'https://www.icloud.com/'
|
||||
];
|
||||
|
||||
const googleUrl = 'https://accounts.google.com';
|
||||
|
|
@ -87,7 +88,8 @@ kpxcSites.exceptionFound = function(identifier, field) {
|
|||
|| document.location.origin.startsWith('https://mail.protonmail.com')
|
||||
&& identifier === 'mailboxPassword') {
|
||||
return true;
|
||||
} else if (document.location.origin === 'https://www.patreon.com' && field?.name === 'current-password') {
|
||||
} else if (document.location.origin === 'https://www.patreon.com' &&
|
||||
(field?.name === 'current-password' || field?.innerHTML?.includes('current-password'))) {
|
||||
return true;
|
||||
} else if (document.location.origin === 'https://wordpress.com' && identifier?.value === 'login__form-password') {
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) {
|
|||
totpInputs.length === DEFAULT_SEGMENTED_TOTP_FIELDS) &&
|
||||
totpInputs.every(
|
||||
input =>
|
||||
(input.inputMode === 'numeric' && input.pattern.includes('0-9')) ||
|
||||
((input.inputMode === 'numeric' || input.inputMode === '') && input.pattern.includes('0-9')) ||
|
||||
((input.type === 'text' || input.type === 'number') && input.maxLength === 1) ||
|
||||
input.type === 'tel'
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue