mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Fix jszip import
This commit is contained in:
parent
8a7f38b2c6
commit
cc06afe5dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue