From c4787265a185966cc656e2fb31af64755260e3fb Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Thu, 4 May 2023 14:11:19 +0300 Subject: [PATCH 1/2] Fix Webp imports from CharHub --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 82bdab96f..cb19efa60 100644 --- a/server.js +++ b/server.js @@ -858,7 +858,7 @@ async function charaRead(img_url, input_format) { description = exif_data['UserComment'].value[0]; } try { - JSON.parse(description); + json5.parse(description); char_data = description; } catch { const byteArr = description.split(",").map(Number); From 1d4b0afb31400e9bd11d79aed04105b77dd34c04 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Thu, 4 May 2023 14:18:10 +0300 Subject: [PATCH 2/2] Fix tag editor triggering editable sliders logic --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 3c628bf8f..9255ba5fe 100644 --- a/public/script.js +++ b/public/script.js @@ -5646,7 +5646,7 @@ $(document).ready(function () { } }); - $(document).on('input', 'div[contenteditable="true"]', function () { + $(document).on('input', '.range-block-counter div[contenteditable="true"]', function () { const caretPosition = saveCaretPosition($(this).get(0)); const myText = $(this).text().trim(); $(this).text(myText); // trim line breaks and spaces