1
0
Fork 0
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:
SirStendec 2018-12-03 18:08:32 -05:00
parent cb2f2b19ee
commit d6504757b3
18 changed files with 413 additions and 99 deletions

View file

@ -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');
}