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);
|
||||
};
|
||||
|
||||
if (decoder === undefined) {
|
||||
decoder = new TextDecoder(charset);
|
||||
}
|
||||
|
||||
filter.onstop = () => {
|
||||
let str = '';
|
||||
for (let buffer of data) {
|
||||
|
|
|
@ -34,6 +34,10 @@
|
|||
<ul>
|
||||
<li>Remove UTF-8-BOM in HTML document (<a href="https://codeberg.org/nobody/LocalCDN/issues/1635">#1635</a>)</li>
|
||||
</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 id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
|
Loading…
Reference in New Issue