Merge pull request #1545 from Ashus/develop

Fix disabled OTP icons - they are never added
This commit is contained in:
Sami Vänttinen 2022-01-25 06:11:43 +02:00 committed by GitHub
commit 2bb2ab57f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,9 @@ kpxcFields.getAllCombinations = async function(inputs) {
// Adds segmented TOTP fields to the combination if found
kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) {
if (!kpxc.settings.showOTPIcon) {
return;
}
const addTotpFieldsToCombination = function(inputFields) {
const totpInputs = Array.from(inputFields).filter(e => e.nodeName === 'INPUT' && e.type !== 'password');
if (totpInputs.length === 6) {