This commit is contained in:
tangly1024
2023-06-24 16:08:25 +08:00
parent 587c51b59f
commit 5a6ffc241d
6 changed files with 36 additions and 19 deletions

View File

@@ -70,7 +70,9 @@ const renderMermaid = async() => {
}
}
})
observer.observe(document.querySelector('#notion-article'), { attributes: true, subtree: true })
if (document.querySelector('#notion-article')) {
observer.observe(document.querySelector('#notion-article'), { attributes: true, subtree: true })
}
}
function renderPrismMac() {