Fix fold comments only run once

This commit is contained in:
the1812 2022-06-13 23:23:24 +08:00
parent 8a21dad3d1
commit cbf031e7e7

View File

@ -35,11 +35,10 @@ const entry = async () => {
button?.click()
}
if (!existingComment) {
const [observer] = childListSubtree(card, () => {
childListSubtree(card, () => {
const panel = dq(card, commentSelector)
if (panel) {
injectToComment(card, handler)
observer.disconnect()
}
})
} else {