mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Telemetry] Remove initial delay to check and send (#26575)
* [Telemetry] Remove initial delay to check and send * do not fire immediately
This commit is contained in:
parent
d8a70b5c26
commit
ee3fc58c62
1 changed files with 1 additions and 11 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue