Merge pull request #1429 from keepassxreboot/fix/apple_login_page

Fix Apple login page
This commit is contained in:
Sami Vänttinen 2021-11-09 06:26:29 +02:00 committed by GitHub
commit 7eba997f79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -76,7 +76,8 @@ kpxcSites.exceptionFound = function(identifier) {
}
if (document.location.origin === 'https://idmsa.apple.com'
&& [ 'password', 'form-row', 'show-password' ].every(c => identifier.contains(c))) {
&& ((typeof identifier === 'string' && identifier === 'password_text_field')
|| [ 'password', 'form-row', 'show-password' ].every(c => identifier.contains(c)))) {
return true;
} else if (document.location.origin.startsWith('https://signin.ebay.')
&& (identifier === 'null' || identifier.value === 'null' || identifier === 'pass')) {

View file

@ -290,7 +290,7 @@ document.addEventListener('mousemove', function(e) {
const xPos = e.clientX - kpxcDefine.diffX;
const yPos = e.clientY - kpxcDefine.diffY;
if (kpxcDefine.selected !== null) {
if (kpxcDefine.selected && kpxcDefine.dialog) {
kpxcDefine.dialog.style.left = Pixels(xPos);
kpxcDefine.dialog.style.top = Pixels(yPos);
}