mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-16 20:00:57 +01:00
Initialize TextDecoder with charset if undefined (#1636)
This commit is contained in:
parent
0f909daa2b
commit
f754810731
@ -116,6 +116,10 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
|
|||||||
data.push(chunk);
|
data.push(chunk);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (decoder === undefined) {
|
||||||
|
decoder = new TextDecoder(charset);
|
||||||
|
}
|
||||||
|
|
||||||
filter.onstop = () => {
|
filter.onstop = () => {
|
||||||
let str = '';
|
let str = '';
|
||||||
for (let buffer of data) {
|
for (let buffer of data) {
|
||||||
|
@ -34,6 +34,10 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Remove UTF-8-BOM in HTML document (<a href="https://codeberg.org/nobody/LocalCDN/issues/1635">#1635</a>)</li>
|
<li>Remove UTF-8-BOM in HTML document (<a href="https://codeberg.org/nobody/LocalCDN/issues/1635">#1635</a>)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<p>Fixed</p>
|
||||||
|
<ul>
|
||||||
|
<li>Initialize TextDecoder with charset if undefined (<a href="https://codeberg.org/nobody/LocalCDN/issues/1636">#1636</a>)</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="generator-section">
|
<div id="generator-section">
|
||||||
<div class="topic-label">
|
<div class="topic-label">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user