Skip to content

Commit

Permalink
fix: watch related changes to prevent dup insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
SunriseFox authored and Jack-Works committed Oct 10, 2019
1 parent c5ab054 commit 33c2c31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/social-network/defaults/injectComments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ export function injectPostCommentsDefault(config: injectPostCommentsDefaultConfi
}
})
.setDOMProxyOption({ afterShadowRootInit: { mode: 'closed' } })
.startWatch()
.startWatch({
attributes: false,
characterData: false,
childList: true,
subtree: true,
})

return () => commentWatcher.stopWatch()
}
Expand Down

0 comments on commit 33c2c31

Please sign in to comment.