From 699c369443185ff2de89128ec022f0cf9e09af6a Mon Sep 17 00:00:00 2001 From: valadaptive Date: Thu, 7 Dec 2023 23:15:42 -0500 Subject: [PATCH] Remove ignoreBOM Apparently the ignoreBOM option actually means "include the BOM". I've added a test for this in my own repository, and will also be submitting a pull request to MDN to clarify this in their documentation. --- public/scripts/sse-stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/sse-stream.js b/public/scripts/sse-stream.js index e50bf55f3..e477d297f 100644 --- a/public/scripts/sse-stream.js +++ b/public/scripts/sse-stream.js @@ -3,7 +3,7 @@ */ class EventSourceStream { constructor() { - const decoder = new TextDecoderStream('utf-8', { ignoreBOM: true }); + const decoder = new TextDecoderStream('utf-8'); let streamBuffer = '';