From 711a3afeeeb742c7ac04acdb81274720b9831f46 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 24 May 2018 21:09:00 +0300 Subject: [PATCH] logQueue can be empty --- background/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/update.js b/background/update.js index 633a33d3..1a005152 100644 --- a/background/update.js +++ b/background/update.js @@ -244,7 +244,7 @@ global API_METHODS const time = Date.now() - logLastWriteTime > 11e3 ? logQueue[0].time + ' ' : ''; - if (!logQueue[0].text) { + if (logQueue[0] && !logQueue[0].text) { logQueue.shift(); if (lines[lines.length - 1]) lines.push(''); }