Fix performance of debug logs view
This commit is contained in:
parent
ff94050c0a
commit
287abd241d
2 changed files with 34 additions and 11 deletions
|
@ -111,8 +111,7 @@
|
|||
// we need to scroll, but not so many that things get slow.
|
||||
const linesToShow = Math.ceil(Math.min(window.innerHeight, 2000) / 5);
|
||||
this.textarea.value = this.logText
|
||||
.split(/\n/g)
|
||||
.slice(0, linesToShow)
|
||||
.split(/\n/g, linesToShow)
|
||||
.concat(['', i18n('loading')])
|
||||
.join('\n');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue