fix some linting
| @@ -1047,7 +1047,7 @@ export function getImageSizeFromDataURL(dataUrl) { | ||
| 1047 | 1047 | |
| 1048 | 1048 | /** |
| 1049 | 1049 | * Gets the filename of the character avatar without extension |
| 1050 | 1050 | * @param {string|number?} [chid=null] - Character ID. If not provided, uses the current character ID |
| 1051 | 1051 | * @param {object} [options={}] - Options arguments |
| 1052 | 1052 | * @param {string?} [options.manualAvatarKey=null] - Manually take the following avatar key, instead of using the chid to determine the name |
| 1053 | 1053 | * @returns {string?} The filename of the character avatar without extension, or null if the character ID is invalid |
| @@ -966,7 +966,7 @@ function registerWorldInfoSlashCommands() { | ||
| 966 | 966 | /** |
| 967 | 967 | * Gets the name of the character-bound lorebook. |
| 968 | 968 | * @param {import('./slash-commands/SlashCommand.js').NamedArguments} args Named arguments |
| 969 | 969 | * @param {import('./slash-commands/SlashCommand.js').UnnamedArgumentsstring} name Character name |
| 970 | 970 | * @returns {string} The name of the character-bound lorebook, a JSON string of the character's lorebooks, or an empty string |
| 971 | 971 | */ |
| 972 | 972 | function getCharBookCallback({ type }, name) { |
| @@ -3443,7 +3443,7 @@ function createEntryInputAutocomplete(input, callback, { allowMultiple = false } | ||
| 3443 | 3443 | }); |
| 3444 | 3444 | |
| 3445 | 3445 | $(input).on('focus click', function () { |
| 3446 | 3446 | $(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : String($(input).val())); |
| 3447 | 3447 | }); |
| 3448 | 3448 | } |
| 3449 | 3449 | |
| @@ -5118,7 +5118,7 @@ export function openWorldInfoEditor(worldName) { | ||
| 5118 | 5118 | |
| 5119 | 5119 | /** |
| 5120 | 5120 | * Assigns a lorebook to the current chat. |
| 5121 | 5121 | * @param {PointerEventJQuery.ClickEvent<Document, undefined, any, any>} event Pointer event |
| 5122 | 5122 | * @returns {Promise<void>} |
| 5123 | 5123 | */ |
| 5124 | 5124 | export async function assignLorebookToChat(event) { |
| @@ -5157,7 +5157,7 @@ export async function assignLorebookToChat(event) { | ||
| 5157 | 5157 | saveMetadata(); |
| 5158 | 5158 | }); |
| 5159 | 5159 | |
| 5160 | 5160 | returnawait callGenericPopup(template, POPUP_TYPE.TEXT); |
| 5161 | 5161 | } |
| 5162 | 5162 | |
| 5163 | 5163 | /** |