diff --git a/public/scripts/utils.js b/public/scripts/utils.js index 47bdaa253..56b4f4a70 100644 --- a/public/scripts/utils.js +++ b/public/scripts/utils.js @@ -1047,7 +1047,7 @@ export function getImageSizeFromDataURL(dataUrl) { /** * Gets the filename of the character avatar without extension - * @param {number?} [chid=null] - Character ID. If not provided, uses the current character ID + * @param {string|number?} [chid=null] - Character ID. If not provided, uses the current character ID * @param {object} [options={}] - Options arguments * @param {string?} [options.manualAvatarKey=null] - Manually take the following avatar key, instead of using the chid to determine the name * @returns {string?} The filename of the character avatar without extension, or null if the character ID is invalid diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 17b52e824..52c25c1da 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -966,7 +966,7 @@ function registerWorldInfoSlashCommands() { /** * Gets the name of the character-bound lorebook. * @param {import('./slash-commands/SlashCommand.js').NamedArguments} args Named arguments - * @param {import('./slash-commands/SlashCommand.js').UnnamedArguments} name Character name + * @param {string} name Character name * @returns {string} The name of the character-bound lorebook, a JSON string of the character's lorebooks, or an empty string */ function getCharBookCallback({ type }, name) { @@ -3443,7 +3443,7 @@ function createEntryInputAutocomplete(input, callback, { allowMultiple = false } }); $(input).on('focus click', function () { - $(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : $(input).val()); + $(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : String($(input).val())); }); } @@ -5118,7 +5118,7 @@ export function openWorldInfoEditor(worldName) { /** * Assigns a lorebook to the current chat. - * @param {PointerEvent} event Pointer event + * @param {JQuery.ClickEvent} event Pointer event * @returns {Promise} */ export async function assignLorebookToChat(event) { @@ -5157,7 +5157,7 @@ export async function assignLorebookToChat(event) { saveMetadata(); }); - return callGenericPopup(template, POPUP_TYPE.TEXT); + await callGenericPopup(template, POPUP_TYPE.TEXT); } /**