From 4d8b1721bc1caea6788e6a68205b1f27b32de382 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 13 Dec 2019 14:57:03 +0000 Subject: [PATCH] Always display HTML outputs even if they are above the size threshold. Could lead to crashing, but this risk is accepted. --- src/core/Chef.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Chef.mjs b/src/core/Chef.mjs index ca02a32d..4d1ff994 100755 --- a/src/core/Chef.mjs +++ b/src/core/Chef.mjs @@ -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 {