diff --git a/public/script.js b/public/script.js index 8fcdd2316..df7bdc7ed 100644 --- a/public/script.js +++ b/public/script.js @@ -275,7 +275,7 @@ DOMPurify.addHook('afterSanitizeAttributes', function (node) { } }); -DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => { +DOMPurify.addHook('uponSanitizeAttribute', (_, data, config) => { if (!config['MESSAGE_SANITIZE']) { return; } @@ -287,7 +287,7 @@ DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => { return v; } - return "custom-" + v; + return 'custom-' + v; }).join(' '); } break; diff --git a/public/scripts/PromptManager.js b/public/scripts/PromptManager.js index 094fe49cc..ae529fab9 100644 --- a/public/scripts/PromptManager.js +++ b/public/scripts/PromptManager.js @@ -1381,7 +1381,7 @@ class PromptManager { footerDiv.querySelector('.menu_button:last-child').addEventListener('click', this.handleNewPrompt); // Add prompt export dialogue and options - const exportForCharacter =` + const exportForCharacter = `
Export for character diff --git a/public/scripts/extensions/expressions/index.js b/public/scripts/extensions/expressions/index.js index 5293bbb64..d88331b8a 100644 --- a/public/scripts/extensions/expressions/index.js +++ b/public/scripts/extensions/expressions/index.js @@ -1504,5 +1504,5 @@ function setExpressionOverrideHtml(forceClear = false) { eventSource.on(event_types.GROUP_UPDATED, updateVisualNovelModeDebounced); registerSlashCommand('sprite', setSpriteSlashCommand, ['emote'], '(spriteId) – force sets the sprite for the current character', true, true); registerSlashCommand('spriteoverride', setSpriteSetCommand, ['costume'], '(optional folder) – sets an override sprite folder for the current character. If the name starts with a slash or a backslash, selects a sub-folder in the character-named folder. Empty value to reset to default.', true, true); - registerSlashCommand('lastsprite', (_, value)=>lastExpression[value.trim()] ?? '', [], '(charName) – Returns the last set sprite / expression for the named character.', true, true); + registerSlashCommand('lastsprite', (_, value) => lastExpression[value.trim()] ?? '', [], '(charName) – Returns the last set sprite / expression for the named character.', true, true); })(); diff --git a/public/scripts/extensions/quick-reply/index.js b/public/scripts/extensions/quick-reply/index.js index 6b184f192..260ab6802 100644 --- a/public/scripts/extensions/quick-reply/index.js +++ b/public/scripts/extensions/quick-reply/index.js @@ -801,7 +801,7 @@ async function qrDeleteCallback(args, label) { if (idx === -1) { toastr.warning('Confirm you are using proper case sensitivity!', `QR with label '${label}' not found`); return ''; - }; + } preset.quickReplySlots.splice(idx, 1); preset.numberOfSlots--; await fetch('/savequickreply', { diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index 15e8736b0..f2b4f096d 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -2642,7 +2642,7 @@ $('#sd_dropdown [id]').on('click', function () { jQuery(async () => { registerSlashCommand('imagine', generatePicture, ['sd', 'img', 'image'], helpString, true, true); - registerSlashCommand('imagine-comfy-workflow', changeComfyWorkflow, ['icw'], '(workflowName) - change the workflow to be used for image generation with ComfyUI, e.g. /imagine-comfy-workflow MyWorkflow') + registerSlashCommand('imagine-comfy-workflow', changeComfyWorkflow, ['icw'], '(workflowName) - change the workflow to be used for image generation with ComfyUI, e.g. /imagine-comfy-workflow MyWorkflow'); $('#extensions_settings').append(renderExtensionTemplate('stable-diffusion', 'settings', defaultSettings)); $('#sd_source').on('change', onSourceChange); diff --git a/public/scripts/extensions/tts/coqui.js b/public/scripts/extensions/tts/coqui.js index f3f69533c..b16fa2cf9 100644 --- a/public/scripts/extensions/tts/coqui.js +++ b/public/scripts/extensions/tts/coqui.js @@ -310,12 +310,12 @@ class CoquiTtsProvider { modelDict = coquiApiModelsFull; if (model_setting_language == null & 'languages' in modelDict[model_language][model_dataset][model_label]) { - toastr.error('Model language not selected, please select one.', DEBUG_PREFIX+' voice mapping model language', { timeOut: 10000, extendedTimeOut: 20000, preventDuplicates: true }); + toastr.error('Model language not selected, please select one.', DEBUG_PREFIX + ' voice mapping model language', { timeOut: 10000, extendedTimeOut: 20000, preventDuplicates: true }); return; } if (model_setting_speaker == null & 'speakers' in modelDict[model_language][model_dataset][model_label]) { - toastr.error('Model speaker not selected, please select one.', DEBUG_PREFIX+' voice mapping model speaker', { timeOut: 10000, extendedTimeOut: 20000, preventDuplicates: true }); + toastr.error('Model speaker not selected, please select one.', DEBUG_PREFIX + ' voice mapping model speaker', { timeOut: 10000, extendedTimeOut: 20000, preventDuplicates: true }); return; }