From ee3fc58c62ae278e75e40421b01b37502257c247 Mon Sep 17 00:00:00 2001 From: Tim Sullivan Date: Mon, 3 Dec 2018 18:26:42 -0700 Subject: [PATCH] [Telemetry] Remove initial delay to check and send (#26575) * [Telemetry] Remove initial delay to check and send * do not fire immediately --- x-pack/plugins/xpack_main/public/hacks/telemetry.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/x-pack/plugins/xpack_main/public/hacks/telemetry.js b/x-pack/plugins/xpack_main/public/hacks/telemetry.js index 4b03f1c951118..46bd909628a0a 100644 --- a/x-pack/plugins/xpack_main/public/hacks/telemetry.js +++ b/x-pack/plugins/xpack_main/public/hacks/telemetry.js @@ -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