mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-10 08:10:52 +00:00
Initial commit for converting FrankerFaceZ to TypeScript.
This commit is contained in:
parent
ba72969c51
commit
b9d23accf0
86 changed files with 8673 additions and 5005 deletions
|
@ -216,7 +216,7 @@ export default class RavenLogger extends Module {
|
|||
return false;
|
||||
|
||||
if ( this.settings && this.settings.get('reports.error.include-user') ) {
|
||||
const user = this.resolve('site')?.getUser();
|
||||
const user = this.resolve('site')?.getUser?.();
|
||||
if ( user )
|
||||
data.user = {id: user.id, username: user.login}
|
||||
}
|
||||
|
@ -401,4 +401,4 @@ export default class RavenLogger extends Module {
|
|||
captureException(exc, opts) { return this.raven.captureException(exc, opts) }
|
||||
captureMessage(msg, opts) { return this.raven.captureMessage(msg, opts) }
|
||||
captureBreadcrumb(...args) { return this.raven.captureBreadcrumb(...args) }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue