mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-22 10:10:10 +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 (
|
if (
|
||||||
(mutation?.addedNodes && Array.from(mutation?.addedNodes).length > 0) ||
|
(mutation?.addedNodes && Array.from(mutation?.addedNodes).length > 0) ||
|
||||||
(mutation?.attributeName === 'disabled' && !mutation?.target?.disabled) ||
|
(mutation?.attributeName === 'disabled' && !mutation?.target?.disabled) ||
|
||||||
(mutation?.attirbuteName === 'style' && mutation?.target)
|
(mutation?.attributeName === 'style' && mutation?.target)
|
||||||
) {
|
) {
|
||||||
addedNodes(mutation, tabData);
|
addedNodes(mutation, tabData);
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ const addedNodes = (mutation, tabInfo) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
queue.push(...Array.from(mutation.target));
|
queue.push(mutation.target);
|
||||||
queue.push(...Array.from(mutation.addedNodes));
|
queue.push(...Array.from(mutation.addedNodes));
|
||||||
|
|
||||||
if (!tabData) {
|
if (!tabData) {
|
||||||
|
@ -85,7 +85,7 @@ const hiddenNodes = (mutation, tabInfo) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
queue.push(...Array.from(mutation.target));
|
queue.push(mutation.target);
|
||||||
|
|
||||||
if (!tabData) {
|
if (!tabData) {
|
||||||
tabData = tabInfo;
|
tabData = tabInfo;
|
||||||
|
@ -96,7 +96,7 @@ const removedNodes = (mutation, tabInfo) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
queue.push(...Array.from(mutation.target));
|
queue.push(mutation.target);
|
||||||
queue.push(...Array.from(mutation.removedNodes));
|
queue.push(...Array.from(mutation.removedNodes));
|
||||||
|
|
||||||
if (!tabData) {
|
if (!tabData) {
|
||||||
|
Loading…
Reference in New Issue
Block a user