1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Minor code review

This commit is contained in:
Raymond Hill 2023-05-24 15:33:46 -04:00
parent db7cadae49
commit e33d948fdc
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -169,8 +169,8 @@ function runAtHtmlElement(fn) {
return;
}
const observer = new MutationObserver(( ) => {
fn();
observer.disconnect();
fn();
});
observer.observe(document, { childList: true });
}