From cf8a1937a0838a965c6cb9e12b9ba652149d0b43 Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 13 Aug 2024 21:07:34 +0200 Subject: [PATCH] fixed: broken html filter (#1638) --- core/manipulate-dom.js | 7 +++---- pages/updates/updates.html | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/core/manipulate-dom.js b/core/manipulate-dom.js index a52f5e0d..18ed55c3 100644 --- a/core/manipulate-dom.js +++ b/core/manipulate-dom.js @@ -116,11 +116,10 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) { data.push(chunk); }; - if (decoder === undefined) { - decoder = new TextDecoder(charset); - } - filter.onstop = () => { + if (decoder === undefined) { + decoder = new TextDecoder(charset); + } let str = ''; for (let buffer of data) { str += decoder.decode(buffer, {'stream': true}); diff --git a/pages/updates/updates.html b/pages/updates/updates.html index b2c78351..8eec026c 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -25,9 +25,9 @@

New in LocalCDN:

-

+

Fixed/p>