mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
use .bind instead of self=this
This commit is contained in:
parent
3320fee9a0
commit
f218a66c2d
@ -37,9 +37,8 @@ export class ReportPoll {
|
||||
) { }
|
||||
|
||||
private schedulePoll() {
|
||||
const self = this;
|
||||
this.timeout = setTimeout(
|
||||
function() { self.getAbuseReports() },
|
||||
this.getAbuseReports.bind(this),
|
||||
60_000 // a minute in milliseconds
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user