refactor: remove useless code
This commit is contained in:
parent
8287e42e6e
commit
fdbd0c56bf
1 changed files with 0 additions and 2 deletions
|
|
@ -17,8 +17,6 @@ const className = Astro.props.class
|
|||
const observer = new MutationObserver(addPreCopyButton);
|
||||
observer.observe(document.body, { childList: true, subtree: true });
|
||||
|
||||
document.addEventListener("DOMContentLoaded", addPreCopyButton);
|
||||
|
||||
function addPreCopyButton() {
|
||||
observer.disconnect();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue