fixed: broken html filter (#1638)
This commit is contained in:
parent
b165c3751c
commit
cf8a1937a0
|
@ -116,11 +116,10 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
|
||||||
data.push(chunk);
|
data.push(chunk);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (decoder === undefined) {
|
|
||||||
decoder = new TextDecoder(charset);
|
|
||||||
}
|
|
||||||
|
|
||||||
filter.onstop = () => {
|
filter.onstop = () => {
|
||||||
|
if (decoder === undefined) {
|
||||||
|
decoder = new TextDecoder(charset);
|
||||||
|
}
|
||||||
let str = '';
|
let str = '';
|
||||||
for (let buffer of data) {
|
for (let buffer of data) {
|
||||||
str += decoder.decode(buffer, {'stream': true});
|
str += decoder.decode(buffer, {'stream': true});
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
<h2>New in LocalCDN:</h2>
|
<h2>New in LocalCDN:</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="release-notes-area">
|
<div class="release-notes-area">
|
||||||
<p></p>
|
<p>Fixed/p>
|
||||||
<ul>
|
<ul>
|
||||||
<li></li>
|
<li>Broken HTML Filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/1638">#1638</a>)</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="generator-section">
|
<div id="generator-section">
|
||||||
|
|
Loading…
Reference in New Issue