Add copy buttons for transformation tool

This commit is contained in:
Misode
2023-02-15 21:49:50 +01:00
parent b7d9b83491
commit 9c2c1bbfd0
5 changed files with 26 additions and 5 deletions

View File

@@ -9,7 +9,6 @@ export async function shareSnippet(type: string, version: VersionId, jsonData: a
try {
const raw = JSON.stringify(jsonData)
const data = lz.compressToBase64(raw)
console.debug('Compression rate', raw.length / raw.length)
const body = JSON.stringify({ data, type, version, show_preview })
let id = ShareCache.get(body)
if (!id) {