mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-22 02:00:08 +01:00
#1570 SOC Prime FIX
This commit is contained in:
parent
2f99352d7e
commit
e265080aae
@ -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)
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user