Skip to content

Commit 2440a1e

Browse files
committed
fix(errorReporting): fix initial state download button
1 parent 68c61f2 commit 2440a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const scale = (inputY: number, yRange: Array<number>, xRange: Array<numbe
126126

127127

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

0 commit comments

Comments
 (0)