1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-25 20:18:31 +00:00

Fix an issue with Raven erroring when error reporting is disabled.

Fix an error with featured emote sets when a room does not exist or is being destroyed.
Fix an error with the host menu when autohost settings failed to load.
This commit is contained in:
SirStendec 2018-04-13 13:36:05 -04:00
parent dcb1ab9a7f
commit 730e2129e9
5 changed files with 21 additions and 9 deletions

View file

@ -152,7 +152,7 @@ export default class RavenLogger extends Module {
},
shouldSendCallback: data => {
if ( this.settings && ! this.settings.get('reports.error.enable') ) {
if ( data.tags.example && this.__example_waiter ) {
if ( data.tags && data.tags.example && this.__example_waiter ) {
this.__example_waiter(null);
this.__example_waiter = null;
}
@ -160,12 +160,13 @@ export default class RavenLogger extends Module {
return false;
}
const exc = data.exception && data.exception.values[0];
// We don't want any of Sentry's junk.
if ( data.message && data.messages.includes('raven-js/') )
if ( data.message && data.messages.includes('raven-js/') || (exc && JSON.stringify(exc).includes('raven-js/')) )
return false;
// We don't want any of Mozilla's junk either.
const exc = data.exception && data.exception.values[0];
if ( exc && exc.type.startsWith('NS_') )
return false;