Skip to content

Commit 4c7da49

Browse files
committed
fix: root is after <bili-comments> sometimes
1 parent c9a24e7 commit 4c7da49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function run() {
1515
const container = assertEl(document.querySelector('#commentapp'))
1616
root = document.createElement('div')
1717
root.id = id
18-
container.append(root)
18+
container.prepend(root)
1919

2020
debug('render')
2121
ReactDOM.createRoot(root).render(

0 commit comments

Comments
 (0)