Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/actions/receive-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ async function _extractZipFromResponse(
// that comes from this realm.
const typedBuffer = new Uint8Array(buffer);
try {
const JSZip = await import('jszip');
const { default: JSZip } = await import('jszip');
const zip = await JSZip.loadAsync(typedBuffer);
// Catch the error if unable to load the zip.
return zip;
Expand Down Expand Up @@ -1369,7 +1369,7 @@ export function retrieveProfileFromFile(
if (_deduceContentType(file.name, file.type) === 'application/zip') {
// Open a zip file in the zip file viewer
const buffer = await fileReader(file).asArrayBuffer();
const JSZip = await import('jszip');
const { default: JSZip } = await import('jszip');
const zip = await JSZip.loadAsync(buffer);
await dispatch(receiveZipFile(zip));
} else {
Expand Down