mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-26 04:28:31 +00:00
4.0.0-rc13.11
* Added: Debug Log generation and easy uploading for issue reports. * Fixed: Bug with chat lines not having a state causing rendering to crash. * Fixed: Add an error boundary around the custom FFZ Emote Menu to catch errors, displaying feedback and sending error reports rather than silently failing. * Fixed: Typo in Fine when logging errors. * Changed: Update chat types with the latest values from Twitch's source. * Changed: Update the GitHub issue template with instructions on uploading logs from v4.
This commit is contained in:
parent
cb2f2b19ee
commit
d6504757b3
18 changed files with 413 additions and 99 deletions
|
@ -116,7 +116,7 @@ export default class Dialog extends EventEmitter {
|
|||
visible = this._visible = ! this._visible,
|
||||
container = this.getContainer();
|
||||
|
||||
if ( maximized )
|
||||
if ( maximized && container )
|
||||
container.classList.toggle('ffz-has-dialog', visible);
|
||||
|
||||
if ( ! visible ) {
|
||||
|
@ -129,6 +129,9 @@ export default class Dialog extends EventEmitter {
|
|||
return;
|
||||
}
|
||||
|
||||
if ( ! container )
|
||||
return;
|
||||
|
||||
if ( this.factory ) {
|
||||
const el = this.factory();
|
||||
if ( el instanceof Promise ) {
|
||||
|
@ -163,13 +166,15 @@ export default class Dialog extends EventEmitter {
|
|||
if ( container === old_container )
|
||||
return;
|
||||
|
||||
if ( maximized )
|
||||
container.classList.add('ffz-has-dialog');
|
||||
else
|
||||
if ( maximized ) {
|
||||
if ( container )
|
||||
container.classList.add('ffz-has-dialog');
|
||||
} else if ( old_container )
|
||||
old_container.classList.remove('ffz-has-dialog');
|
||||
|
||||
this._element.remove();
|
||||
container.appendChild(this._element);
|
||||
if ( container )
|
||||
container.appendChild(this._element);
|
||||
|
||||
this.emit('resize');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue