Webp cards format is no longer supported

This commit is contained in:
Cohee
2023-09-15 14:56:15 +03:00
parent 6c8bd06308
commit 2b3055a84a
11 changed files with 10 additions and 319 deletions

View File

@ -6746,7 +6746,6 @@ export function processDroppedFiles(files) {
const allowedMimeTypes = [
'application/json',
'image/png',
'image/webp',
];
for (const file of files) {
@ -6762,7 +6761,7 @@ function importCharacter(file) {
const ext = file.name.match(/\.(\w+)$/);
if (
!ext ||
(ext[1].toLowerCase() != "json" && ext[1].toLowerCase() != "png" && ext[1] != "webp")
(ext[1].toLowerCase() != "json" && ext[1].toLowerCase() != "png")
) {
return;
}