mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove ignoreBOM
Apparently the ignoreBOM option actually means "include the BOM". I've added a test for this in my own repository, and will also be submitting a pull request to MDN to clarify this in their documentation.
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
class EventSourceStream {
|
class EventSourceStream {
|
||||||
constructor() {
|
constructor() {
|
||||||
const decoder = new TextDecoderStream('utf-8', { ignoreBOM: true });
|
const decoder = new TextDecoderStream('utf-8');
|
||||||
|
|
||||||
let streamBuffer = '';
|
let streamBuffer = '';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user