mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #3154 from overleaf/jpa-bib-log-parser-use-es5
[misc] use es5 syntax in bib-log-parser -- babel does not process it GitOrigin-RevId: 82585111941b03b799de2fd209759078e0c6e7f6
This commit is contained in:
parent
692b5546c5
commit
473e9d32f2
1 changed files with 9 additions and 4 deletions
|
@ -27,12 +27,17 @@ define(function() {
|
|||
|
||||
// Too many log entries can cause browser crashes
|
||||
// Construct a too many files error from the last match
|
||||
const maxErrors = 100
|
||||
var maxErrors = 100;
|
||||
if (iterationCount >= maxErrors) {
|
||||
const level = newEntry.level + "s"
|
||||
newEntry.message = `Over ${maxErrors} ${level} returned. Download raw logs to see full list`;
|
||||
var level = newEntry.level + "s";
|
||||
newEntry.message = [
|
||||
"Over",
|
||||
maxErrors,
|
||||
level,
|
||||
"returned. Download raw logs to see full list"
|
||||
].join(" ");
|
||||
newEntry.line = undefined;
|
||||
result.unshift(newEntry)
|
||||
result.unshift(newEntry);
|
||||
return [result, ""];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue