From 817ae20c3b20ebd324d6e93422f40b6d3bbafcd1 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 27 May 2025 22:31:16 +0300 Subject: [PATCH] Allow vertical scroll in import menu --- public/script.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/script.js b/public/script.js index 9db4b579a..156540456 100644 --- a/public/script.js +++ b/public/script.js @@ -12257,9 +12257,7 @@ jQuery(async function () { $(document).on('click', '.external_import_button, #external_import_button', async () => { const html = await renderTemplateAsync('importCharacters'); - - /** @type {string?} */ - const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { wider: true, okButton: $('#popup_template').attr('popup-button-import'), rows: 4 }); + const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { allowVerticalScrolling: true, wider: true, okButton: $('#popup_template').attr('popup-button-import'), rows: 4 }); if (!input) { console.debug('Custom content import cancelled'); @@ -12267,7 +12265,7 @@ jQuery(async function () { } // break input into one input per line - const inputs = input.split('\n').map(x => x.trim()).filter(x => x.length > 0); + const inputs = String(input).split('\n').map(x => x.trim()).filter(x => x.length > 0); for (const url of inputs) { let request;