Define constant after creating idle detector

pull/1/head
Daniel Gasienica 7 years ago
parent d3c9de4712
commit a4ecf1a9d6

@ -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,

Loading…
Cancel
Save