in src/services/task.ts [38:45]
public finallyFireTasks() {
window.addEventListener('beforeunload', () => {
if (!this.queues.length) {
return;
}
new Report('ERRORS', this.collector).sendByBeacon(this.queues);
});
}