Merge cf96c3bcac4301b069b66c7b240687ca00bd68c7 into afecf2af5d897b763e5e8e28d46aad2f710ccad6

This commit is contained in:
TurboControl 2022-01-15 11:56:36 -08:00 committed by GitHub
commit 553a7951f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1434,6 +1434,9 @@ function observe(options) {
observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
mo = new MUTATION_OBSERVER(function (objects) {
if (disabled) return;
if (!config.observeMutations) {
return;
}
toArray(objects).forEach(function (mutationRecord) {
if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
if (config.searchPseudoElements) {