Fix jszip import

This commit is contained in:
Jordan Eldredge 2022-10-04 15:49:11 -07:00
parent 8a7f38b2c6
commit cc06afe5dd

View file

@ -112,7 +112,7 @@ export function isValidSkinFilename(filename) {
}
export async function getSkinType(file) {
const JSZip = await import("jszip");
const JSZip = (await import("jszip")).default;
try {
const zip = await JSZip.loadAsync(file);
if (zip.file(/main\.bmp$/i).length > 0) {