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 });
}