Fix Webp imports from CharHub

This commit is contained in:
SillyLossy
2023-05-04 14:11:19 +03:00
parent 9d59bfd648
commit c4787265a1

View File

@@ -858,7 +858,7 @@ async function charaRead(img_url, input_format) {
description = exif_data['UserComment'].value[0]; description = exif_data['UserComment'].value[0];
} }
try { try {
JSON.parse(description); json5.parse(description);
char_data = description; char_data = description;
} catch { } catch {
const byteArr = description.split(",").map(Number); const byteArr = description.split(",").map(Number);