layout sharing via url

[deploy]
This commit is contained in:
2023-07-09 01:20:38 +02:00
parent 391c9d8837
commit 26a6f70ccb
9 changed files with 166 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ export async function stringifyCompressed(chords: any): Promise<Blob> {
* Decompress JSON.parse with gzip
*/
export async function parseCompressed<T>(blob: Blob): Promise<T> {
const stream = blob.stream().pipeThrough(new DecompressionStream("gzip"))
const stream = blob.stream().pipeThrough(new DecompressionStream("deflate"))
return await new Response(stream).json()
}