Przeglądaj źródła

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

n1474335 5 lat temu
rodzic
commit
4d8b1721bc
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/core/Chef.mjs

+ 4 - 4
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 {