From a4ecf1a9d6a597e602bb37a29e15bd5cd8b08866 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Thu, 29 Mar 2018 13:11:32 -0400 Subject: [PATCH] Define constant after creating idle detector --- js/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/background.js b/js/background.js index 38d1c683c..c8bb9171c 100644 --- a/js/background.js +++ b/js/background.js @@ -104,8 +104,9 @@ console.log('Storage fetch'); storage.fetch(); - const NUM_MESSAGE_UPGRADES_PER_IDLE = 2; const idleDetector = new IdleDetector(); + + const NUM_MESSAGE_UPGRADES_PER_IDLE = 2; idleDetector.on('idle', async () => { const results = await MessageDataMigrator.processNext({ BackboneMessage: Whisper.Message,