mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Switch from direct access to getAttribute()
This commit is contained in:
parent
5eac65ec85
commit
2fb17f7b19
1 changed files with 1 additions and 2 deletions
|
|
@ -190,8 +190,7 @@ kpxcForm.getFormSubmitButton = function(form) {
|
|||
|
||||
// Try to find another button. Select the last one.
|
||||
// If any formaction overriding the default action is set, ignore those buttons.
|
||||
const buttons = Array.from(form.querySelectorAll(kpxcForm.formButtonQuery))
|
||||
.filter(b => b.formAction === document.location.href);
|
||||
const buttons = Array.from(form.querySelectorAll(kpxcForm.formButtonQuery)).filter(b => !b.getAttribute('formAction'));
|
||||
if (buttons.length > 0) {
|
||||
return buttons[buttons.length - 1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue