Merge pull request #1622 from yanCode/fix/single-mask-import

fix: allow to import a single mask
This commit is contained in:
Yifei Zhang 2023-05-19 10:57:37 +08:00 committed by GitHub
commit 8d7f3bd215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -256,6 +256,11 @@ export function MaskPage() {
maskStore.create(mask);
}
}
return;
}
//if the content is a single mask.
if (importMasks.name) {
maskStore.create(importMasks);
}
} catch {}
});