Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit a64b2c9

Browse files
committed
Add callback to flush binding
1 parent b3d2c18 commit a64b2c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class Analytics {
214214
}
215215

216216
if (this.flushInterval && !this.timer) {
217-
this.timer = setTimeout(this.flush.bind(this), this.flushInterval)
217+
this.timer = setTimeout(this.flush.bind(this, callback), this.flushInterval)
218218
}
219219
}
220220

0 commit comments

Comments
 (0)