#1513 Mutation observer FIX - typo FIX + ByBit

This commit is contained in:
GrzegorzZajac000 2024-03-02 15:11:37 +01:00
parent 23d2efab8c
commit 4570cd19ad
4 changed files with 4 additions and 4 deletions

View File

@ -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);
} }

View File

@ -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) {

View File

@ -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;

View File

@ -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) {