Skip to content

Commit

Permalink
fix(errorReporting): fix initial state download button
Browse files Browse the repository at this point in the history
  • Loading branch information
nurikk committed Nov 4, 2024
1 parent 68c61f2 commit 2440a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const scale = (inputY: number, yRange: Array<number>, xRange: Array<numbe


export const download = async (data: Record<string, unknown>, filename: string) => {
const JSZip = await require('jszip');
const {default: JSZip} = await import('jszip');
const zip = new JSZip();
zip.file(filename, JSON.stringify(data, null, 4), { compression: 'DEFLATE' });
zip.generateAsync({ type: "blob" }).then((content) => {
Expand Down

0 comments on commit 2440a1e

Please sign in to comment.