mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-13 22:41:57 +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
|
@ -619,7 +619,7 @@ export class FineWrapper extends EventEmitter {
|
|||
}
|
||||
});
|
||||
|
||||
this.finelog.error(`An error occured when calling forceUpdate on an instance of ${this.name}`, err);
|
||||
this.fine.log.error(`An error occurred when calling forceUpdate on an instance of ${this.name}`, err);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -10,9 +10,14 @@ const RAVEN_LEVELS = {
|
|||
|
||||
export default class Logger {
|
||||
constructor(parent, name, level, raven) {
|
||||
this.root = parent ? parent.root : this;
|
||||
this.parent = parent;
|
||||
this.name = name;
|
||||
|
||||
if ( this.root == this )
|
||||
this.captured_init = [];
|
||||
|
||||
this.init = false;
|
||||
this.enabled = true;
|
||||
this.level = level || (parent && parent.level) || Logger.DEFAULT_LEVEL;
|
||||
this.raven = raven || (parent && parent.raven);
|
||||
|
@ -68,6 +73,14 @@ export default class Logger {
|
|||
|
||||
const message = Array.prototype.slice.call(args);
|
||||
|
||||
if ( this.root.init )
|
||||
this.root.captured_init.push({
|
||||
time: Date.now(),
|
||||
category: this.name,
|
||||
message: message.join(' '),
|
||||
level: RAVEN_LEVELS[level] || level
|
||||
});
|
||||
|
||||
this.crumb({
|
||||
message: message.join(' '),
|
||||
category: this.name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue