#1570 SOC Prime FIX

This commit is contained in:
GrzegorzZajac000 2024-06-25 15:45:51 +02:00
parent 2f99352d7e
commit e265080aae

View File

@ -67,6 +67,19 @@ const inputToken = (request, inputElement, siteURL) => {
document.activeElement.dispatchEvent(new KeyboardEvent('keyup', { key: request.token[i] }));
}
// END NORTON FIX
// SOC PRIME FIX
if (siteURL.includes('socprime.com')) {
const nextInput = document.activeElement.getAttribute('data-next');
if (nextInput) {
const nextInputEl = document.querySelector(`input[name="${nextInput}"]`);
nextInputEl.focus();
} else {
document.activeElement.dispatchEvent(new KeyboardEvent('keyup', { key: 'Enter' }));
}
}
// END SOC PRIME FIX
}, 100 * i)
);
}