fix emoji encoding issue
This commit is contained in:
@@ -142,7 +142,8 @@ es.onmessage = (e) => {
|
|||||||
titleEl.textContent = 'Error generating page';
|
titleEl.textContent = 'Error generating page';
|
||||||
document.querySelector('.subtitle').textContent = 'Please refresh and try again';
|
document.querySelector('.subtitle').textContent = 'Please refresh and try again';
|
||||||
} else {
|
} else {
|
||||||
const decoded = atob(e.data);
|
const bytes = Uint8Array.from(atob(e.data), c => c.charCodeAt(0));
|
||||||
|
const decoded = new TextDecoder().decode(bytes);
|
||||||
htmlChunks.push(decoded);
|
htmlChunks.push(decoded);
|
||||||
htmlSize += decoded.length;
|
htmlSize += decoded.length;
|
||||||
chars = htmlSize;
|
chars = htmlSize;
|
||||||
|
|||||||
Reference in New Issue
Block a user