Fixes and enhancements, from issue list
This commit is contained in:
@@ -56,10 +56,11 @@ export function injectFreeRollBar(_chatLog, html) {
|
||||
rollFree(pool, color, explode5)
|
||||
})
|
||||
|
||||
// Insert between .chat-scroll and .chat-form
|
||||
// Insert before the chat form — use chatForm.parentElement for AppV2 compatibility
|
||||
// (in v13 parts are nested inside the app element, not direct children)
|
||||
const chatForm = html.querySelector(".chat-form")
|
||||
if (chatForm) {
|
||||
html.insertBefore(bar, chatForm)
|
||||
chatForm.parentElement.insertBefore(bar, chatForm)
|
||||
} else {
|
||||
html.appendChild(bar)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user