From 6953510a8a178e2d37232cf3c48e1489cea89d2e Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sat, 3 Sep 2022 13:27:20 +0300 Subject: Small fixes for 1.8.2 --- keepassxc-browser/content/fill.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/keepassxc-browser/content/fill.js b/keepassxc-browser/content/fill.js index 345a4f5..7bf07d0 100644 --- a/keepassxc-browser/content/fill.js +++ b/keepassxc-browser/content/fill.js @@ -92,7 +92,7 @@ kpxcFill.fillFromAutofill = async function() { // Fill requested by selecting credentials from the popup kpxcFill.fillFromPopup = async function(id, uuid) { - if (!kpxc.credentials.length === 0 || !kpxc.credentials[id] || kpxc.combinations.length === 0) { + if (kpxc.credentials.length === 0 || !kpxc.credentials[id] || kpxc.combinations.length === 0) { logDebug('Error: Credential list is empty.'); return; } @@ -304,13 +304,17 @@ kpxcFill.fillInStringFields = function(fields, stringFields) { // Performs Auto-Submit. If filling single credentials is enabled, a 5 second timeout will be needed for fill kpxcFill.performAutoSubmit = async function(combination, skipAutoSubmit) { + if (!kpxc.settings.autoSubmit) { + return; + } + const isAutoSubmitPerformed = await sendMessage('page_get_autosubmit_performed'); if (isAutoSubmitPerformed && kpxc.settings.autoFillSingleEntry) { return; } const autoSubmitIgnoredForSite = await kpxc.siteIgnored(IGNORE_AUTOSUBMIT); - if (kpxc.settings.autoSubmit && !skipAutoSubmit && !autoSubmitIgnoredForSite) { + if (!skipAutoSubmit && !autoSubmitIgnoredForSite) { await sendMessage('page_set_autosubmit_performed'); const submitButton = kpxcForm.getFormSubmitButton(combination.form); -- cgit v1.2.3