JS: Fix v2 defaults for Compression/TileType

This commit is contained in:
Brandon Liu
2022-10-05 17:23:11 +08:00
parent b108831159
commit 15be9a6c07
2 changed files with 6 additions and 6 deletions

View File

@@ -142,7 +142,7 @@ export enum Compression {
}
function tryDecompress(buf: ArrayBuffer, compression: Compression) {
if (compression === Compression.None) {
if (compression === Compression.None || compression === Compression.Unknown) {
return buf;
} else if (compression === Compression.Gzip) {
return decompressSync(new Uint8Array(buf));