fix some linting

6eb89bd21c8eabcb30d0b346f41d6b40ae260840

Wolfsblvt <wolfsblvt@gmail.com>

2 files changed, +5 -5Showing whitespace changes
public/scripts/utils.js+1 -1
@@ -1047,7 +1047,7 @@ export function getImageSizeFromDataURL(dataUrl) {
10471047
1048/**1048/**
1049 * Gets the filename of the character avatar without extension1049 * Gets the filename of the character avatar without extension
1050 * @param {number?} [chid=null] - Character ID. If not provided, uses the current character ID1050 * @param {string|number?} [chid=null] - Character ID. If not provided, uses the current character ID
1051 * @param {object} [options={}] - Options arguments1051 * @param {object} [options={}] - Options arguments
1052 * @param {string?} [options.manualAvatarKey=null] - Manually take the following avatar key, instead of using the chid to determine the name1052 * @param {string?} [options.manualAvatarKey=null] - Manually take the following avatar key, instead of using the chid to determine the name
1053 * @returns {string?} The filename of the character avatar without extension, or null if the character ID is invalid1053 * @returns {string?} The filename of the character avatar without extension, or null if the character ID is invalid
public/scripts/world-info.js+4 -4
@@ -966,7 +966,7 @@ function registerWorldInfoSlashCommands() {
966 /**966 /**
967 * Gets the name of the character-bound lorebook.967 * Gets the name of the character-bound lorebook.
968 * @param {import('./slash-commands/SlashCommand.js').NamedArguments} args Named arguments968 * @param {import('./slash-commands/SlashCommand.js').NamedArguments} args Named arguments
969 * @param {import('./slash-commands/SlashCommand.js').UnnamedArguments} name Character name969 * @param {string} name Character name
970 * @returns {string} The name of the character-bound lorebook, a JSON string of the character's lorebooks, or an empty string970 * @returns {string} The name of the character-bound lorebook, a JSON string of the character's lorebooks, or an empty string
971 */971 */
972 function getCharBookCallback({ type }, name) {972 function getCharBookCallback({ type }, name) {
@@ -3443,7 +3443,7 @@ function createEntryInputAutocomplete(input, callback, { allowMultiple = false }
3443 });3443 });
34443444
3445 $(input).on('focus click', function () {3445 $(input).on('focus click', function () {
3446 $(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : $(input).val());3446 $(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : String($(input).val()));
3447 });3447 });
3448}3448}
34493449
@@ -5118,7 +5118,7 @@ export function openWorldInfoEditor(worldName) {
51185118
5119/**5119/**
5120 * Assigns a lorebook to the current chat.5120 * Assigns a lorebook to the current chat.
5121 * @param {PointerEvent} event Pointer event5121 * @param {JQuery.ClickEvent<Document, undefined, any, any>} event Pointer event
5122 * @returns {Promise<void>}5122 * @returns {Promise<void>}
5123 */5123 */
5124export async function assignLorebookToChat(event) {5124export async function assignLorebookToChat(event) {
@@ -5157,7 +5157,7 @@ export async function assignLorebookToChat(event) {
5157 saveMetadata();5157 saveMetadata();
5158 });5158 });
51595159
5160 return callGenericPopup(template, POPUP_TYPE.TEXT);5160 await callGenericPopup(template, POPUP_TYPE.TEXT);
5161}5161}
51625162
5163/**5163/**