mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-22 18:19:59 +01:00
#1501 addInputListeners - FIX for github
This commit is contained in:
parent
1aab30e921
commit
f366a693fe
@ -29,7 +29,11 @@ const addInputListener = (elements, tabID) => {
|
||||
|
||||
elements.map(input => {
|
||||
if (input?.dataset?.twofasInputListener === 'true' && input?.dataset.twofasInput) {
|
||||
return false;
|
||||
if (input === document.activeElement || input.matches(':focus')) {
|
||||
return func({ target: input });
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return updateEventListener(input, func);
|
||||
|
Loading…
Reference in New Issue
Block a user