From f754810731ba6947a50a0e12579140f52f2a8e5c Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 5 Aug 2024 06:30:09 +0200 Subject: [PATCH] Initialize TextDecoder with charset if undefined (#1636) --- core/manipulate-dom.js | 4 ++++ pages/updates/updates.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/core/manipulate-dom.js b/core/manipulate-dom.js index b57d878f..a52f5e0d 100644 --- a/core/manipulate-dom.js +++ b/core/manipulate-dom.js @@ -116,6 +116,10 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) { data.push(chunk); }; + if (decoder === undefined) { + decoder = new TextDecoder(charset); + } + filter.onstop = () => { let str = ''; for (let buffer of data) { diff --git a/pages/updates/updates.html b/pages/updates/updates.html index a5b07226..286e1013 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -34,6 +34,10 @@ +

Fixed

+