* [Telemetry] Remove initial delay to check and send * do not fire immediately
This commit is contained in:
parent
8e573a2f7b
commit
4f017265e4
|
@ -92,17 +92,7 @@ export class Telemetry {
|
|||
* Public method
|
||||
*/
|
||||
start() {
|
||||
// delay the initial report to allow the user some time to read the opt-out message
|
||||
let hasWaited = false;
|
||||
|
||||
// continuously check if it's due time for a report
|
||||
window.setInterval(() => {
|
||||
if (hasWaited) {
|
||||
// throw away the return data
|
||||
this._sendIfDue();
|
||||
}
|
||||
hasWaited = true;
|
||||
}, 60000);
|
||||
window.setInterval(() => this._sendIfDue(), 60000);
|
||||
}
|
||||
|
||||
} // end class
|
||||
|
|
Loading…
Reference in a new issue