mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-25 11:40:30 +01:00
#1513 Mutation observer FIX - typo FIX + ByBit
This commit is contained in:
parent
23d2efab8c
commit
4570cd19ad
@ -46,7 +46,7 @@ const createObserver = tabData => {
|
||||
if (
|
||||
(mutation?.addedNodes && Array.from(mutation?.addedNodes).length > 0) ||
|
||||
(mutation?.attributeName === 'disabled' && !mutation?.target?.disabled) ||
|
||||
(mutation?.attirbuteName === 'style' && mutation?.target)
|
||||
(mutation?.attributeName === 'style' && mutation?.target)
|
||||
) {
|
||||
addedNodes(mutation, tabData);
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ const addedNodes = (mutation, tabInfo) => {
|
||||
return false;
|
||||
}
|
||||
|
||||
queue.push(...Array.from(mutation.target));
|
||||
queue.push(mutation.target);
|
||||
queue.push(...Array.from(mutation.addedNodes));
|
||||
|
||||
if (!tabData) {
|
||||
|
@ -85,7 +85,7 @@ const hiddenNodes = (mutation, tabInfo) => {
|
||||
return false;
|
||||
}
|
||||
|
||||
queue.push(...Array.from(mutation.target));
|
||||
queue.push(mutation.target);
|
||||
|
||||
if (!tabData) {
|
||||
tabData = tabInfo;
|
||||
|
@ -96,7 +96,7 @@ const removedNodes = (mutation, tabInfo) => {
|
||||
return false;
|
||||
}
|
||||
|
||||
queue.push(...Array.from(mutation.target));
|
||||
queue.push(mutation.target);
|
||||
queue.push(...Array.from(mutation.removedNodes));
|
||||
|
||||
if (!tabData) {
|
||||
|
Loading…
Reference in New Issue
Block a user