Always display HTML outputs even if they are above the size threshold. Could lead to crashing, but this risk is accepted.

This commit is contained in:
n1474335 2019-12-13 14:57:03 +00:00
parent fd390bc61b
commit 4d8b1721bc
1 changed files with 4 additions and 4 deletions

View File

@ -73,10 +73,10 @@ class Chef {
// The threshold is specified in KiB.
const threshold = (options.ioDisplayThreshold || 1024) * 1024;
const returnType =
this.dish.size > threshold ?
Dish.ARRAY_BUFFER :
this.dish.type === Dish.HTML ?
Dish.HTML :
this.dish.type === Dish.HTML ?
Dish.HTML :
this.dish.size > threshold ?
Dish.ARRAY_BUFFER :
Dish.STRING;
return {