mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-01 23:48:31 +00:00
Make changes to how forceUpdate() is called to hopefully reduce errors with React being stupid and not understanding how the DOM works. Also don't display an empty message for a resub with no attached message.
This commit is contained in:
parent
67053e3804
commit
fb1ea38f1b
6 changed files with 29 additions and 12 deletions
|
@ -177,8 +177,8 @@ export default class ChatHook extends Module {
|
|||
this.settings.add('chat.bits.show-pinned', {
|
||||
default: true,
|
||||
ui: {
|
||||
path: 'Chat > Bits and Cheering >> Pinned Cheers',
|
||||
title: 'Display Pinned Cheer',
|
||||
path: 'Chat > Bits and Cheering >> Appearance',
|
||||
title: 'Display Top Cheerers',
|
||||
|
||||
component: 'setting-check-box'
|
||||
}
|
||||
|
@ -514,9 +514,7 @@ export default class ChatHook extends Module {
|
|||
|
||||
|
||||
updateChatLines() {
|
||||
for(const inst of this.PinnedCheer.instances)
|
||||
inst.forceUpdate();
|
||||
|
||||
this.PinnedCheer.forceUpdate();
|
||||
this.chat_line.updateLines();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue