mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* [Telemetry] Remove initial delay to check and send * do not fire immediately
This commit is contained in:
parent
8e573a2f7b
commit
4f017265e4
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