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(''); }