File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1178,7 +1178,7 @@ async function _extractZipFromResponse(
11781178 // that comes from this realm.
11791179 const typedBuffer = new Uint8Array ( buffer ) ;
11801180 try {
1181- const JSZip = await import ( 'jszip' ) ;
1181+ const { default : JSZip } = await import ( 'jszip' ) ;
11821182 const zip = await JSZip . loadAsync ( typedBuffer ) ;
11831183 // Catch the error if unable to load the zip.
11841184 return zip ;
@@ -1369,7 +1369,7 @@ export function retrieveProfileFromFile(
13691369 if ( _deduceContentType ( file . name , file . type ) === 'application/zip' ) {
13701370 // Open a zip file in the zip file viewer
13711371 const buffer = await fileReader ( file ) . asArrayBuffer ( ) ;
1372- const JSZip = await import ( 'jszip' ) ;
1372+ const { default : JSZip } = await import ( 'jszip' ) ;
13731373 const zip = await JSZip . loadAsync ( buffer ) ;
13741374 await dispatch ( receiveZipFile ( zip ) ) ;
13751375 } else {
You can’t perform that action at this time.
0 commit comments