diff --git a/js/debugLog.js b/js/debugLog.js index 1cbcec5a..c6e0f7fa 100644 --- a/js/debugLog.js +++ b/js/debugLog.js @@ -29,7 +29,7 @@ }, log: function(str) { this.add({time: Date.now(), value: str}).save(); - if (this.length > MAX_MESSAGES) { + while (this.length > MAX_MESSAGES) { this.at(0).destroy(); } },