Skip to content

Commit 2420f1a

Browse files
fix type
1 parent 93df31f commit 2420f1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

processors/compression/compression.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ async function process(pageData, options, lastModDate = new Date()) {
100100
let startTag;
101101
[startTag, endTag] = tagIndex == -1 ? ["", ""] : EMBEDDED_IMAGE_DATA_TAGS[tagIndex];
102102
const html = getHTMLStartData(pageData, options) + startTag;
103-
const hmtlData = new Uint8Array([...getLength(html.length + 4), ...[0x74, 0x54, 0x58, 0x74, 0x50, 0x4e, 0x47, 0], ...new TextEncoder().encode(html)]);
103+
const hmtlData = new Uint8Array([...getLength(html.length + 4), ...[0x74, 0x45, 0x58, 0x74, 0x50, 0x4e, 0x47, 0], ...new TextEncoder().encode(html)]);
104104
await writeData(zipDataWriter.writable, hmtlData);
105105
await writeData(zipDataWriter.writable, getCRC32(hmtlData, 4));
106106
}
107107
await writeData(zipDataWriter.writable, embeddedImageData);
108108
await writeData(zipDataWriter.writable, new Uint8Array(4));
109109
embeddedImageDataOffset = zipDataWriter.offset;
110-
await writeData(zipDataWriter.writable, new Uint8Array([0x74, 0x54, 0x58, 0x74, 0x5a, 0x49, 0x50, 0]));
110+
await writeData(zipDataWriter.writable, new Uint8Array([0x74, 0x45, 0x58, 0x74, 0x5a, 0x49, 0x50, 0]));
111111
if (options.selfExtractingArchive) {
112112
await writeData(zipDataWriter.writable, new TextEncoder().encode(endTag));
113113
}

0 commit comments

Comments
 (0)