#1501 addedNode - fix (deel.com, gate.io)

This commit is contained in:
GrzegorzZajac000 2024-02-26 17:56:49 +01:00
parent 0ddf30c027
commit 7b9ac395e3
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@
const browser = require('webextension-polyfill');
const findSignificantChanges = require('./findSignificantChanges');
const { getInputs, addInputListener, clearFormElementsNumber, addFormElementsNumber, getFormElements } = require('../../functions');
const getChildNodes = require('./getChildNodes');
const storeLog = require('../../../partials/storeLog');
const notObservedNodes = require('../observerConstants/notObservedNodes');
@ -74,7 +75,9 @@ const addedNodes = (mutation, tabInfo) => {
const newNodes =
Array.from(mutation?.addedNodes)
.concat(...(Array.from(mutation?.addedNodes).map(node => getChildNodes(node))))
.concat(mutation?.target)
.concat(...getChildNodes(mutation.target))
.filter(node => !notObservedNodes.includes(node.nodeName.toLowerCase()));
if (!newNodes || newNodes.length <= 0) {

View File

@ -77,6 +77,7 @@
flex-direction: row !important;
height: 15px !important;
justify-content: space-between !important;
line-height: 1 !important;
margin-top: 10px !important;
overflow: hidden !important;
width: 100% !important;