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
1 changed files with 1 additions and 1 deletions

View File

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