mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-22 02:00:08 +01:00
#1501 addedNode - fix (deel.com, gate.io)
This commit is contained in:
parent
0ddf30c027
commit
7b9ac395e3
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user