From 6c434e372b37f39a89bab6d89c430c315789c9aa Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sun, 17 Sep 2017 10:50:45 +0300 Subject: [PATCH] If a new login div is created it is not detected at hidden first.. let the loop be --- keepassxc-browser/keepassxc-browser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/keepassxc-browser/keepassxc-browser.js b/keepassxc-browser/keepassxc-browser.js index 8fab0a0..f700ce7 100644 --- a/keepassxc-browser/keepassxc-browser.js +++ b/keepassxc-browser/keepassxc-browser.js @@ -810,7 +810,6 @@ cipFields.getAllFields = function() { cipFields.getHiddenFieldCount = function() { let count = 0; - jQuery(cipFields.inputQueryPattern).each(function() { if (jQuery(this).is(':hidden')) { count++; @@ -1122,17 +1121,18 @@ cip.init = function() { }; cip.detectNewActiveFields = function() { - const hiddenFields = cipFields.getHiddenFieldCount(); + //const hiddenFields = cipFields.getHiddenFieldCount(); - if (hiddenFields > 0) { + //if (hiddenFields > 0) { const divDetect = setInterval(function() { const fields = cipFields.getAllFields(); - if (fields.length > 0) { + console.log(fields.length); + if (fields.length > 1) { cip.initCredentialFields(true); clearInterval(divDetect); } }, 1000); - } + //} }; cip.initCredentialFields = function(forceCall) {