mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Minor code review
This commit is contained in:
parent
db7cadae49
commit
e33d948fdc
@ -169,8 +169,8 @@ function runAtHtmlElement(fn) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const observer = new MutationObserver(( ) => {
|
const observer = new MutationObserver(( ) => {
|
||||||
fn();
|
|
||||||
observer.disconnect();
|
observer.disconnect();
|
||||||
|
fn();
|
||||||
});
|
});
|
||||||
observer.observe(document, { childList: true });
|
observer.observe(document, { childList: true });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user