Fix disabled OTP icons - they are never added

This commit is contained in:
Ashus 2022-01-25 00:24:28 +01:00
parent 43c4446b8c
commit 1f883912ad

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) {