Compare commits
1 Commits
628925dce9
...
feature/ma
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3908f771f |
@@ -247,7 +247,7 @@
|
|||||||
buffer = buffer.substring(eventEnd + 2);
|
buffer = buffer.substring(eventEnd + 2);
|
||||||
const dataLines = event.split('\n')
|
const dataLines = event.split('\n')
|
||||||
.filter(line => line.startsWith('data:'))
|
.filter(line => line.startsWith('data:'))
|
||||||
.map(line => line.substring(5).replace(/^ /, ''));
|
.map(line => line.substring(5));
|
||||||
|
|
||||||
if (dataLines.length > 0) onData(dataLines.join('\n'));
|
if (dataLines.length > 0) onData(dataLines.join('\n'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user