mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Lint fix
This commit is contained in:
@ -275,7 +275,7 @@ DOMPurify.addHook('afterSanitizeAttributes', function (node) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => {
|
DOMPurify.addHook('uponSanitizeAttribute', (_, data, config) => {
|
||||||
if (!config['MESSAGE_SANITIZE']) {
|
if (!config['MESSAGE_SANITIZE']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -287,7 +287,7 @@ DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => {
|
|||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
return "custom-" + v;
|
return 'custom-' + v;
|
||||||
}).join(' ');
|
}).join(' ');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -801,7 +801,7 @@ async function qrDeleteCallback(args, label) {
|
|||||||
if (idx === -1) {
|
if (idx === -1) {
|
||||||
toastr.warning('Confirm you are using proper case sensitivity!', `QR with label '${label}' not found`);
|
toastr.warning('Confirm you are using proper case sensitivity!', `QR with label '${label}' not found`);
|
||||||
return '';
|
return '';
|
||||||
};
|
}
|
||||||
preset.quickReplySlots.splice(idx, 1);
|
preset.quickReplySlots.splice(idx, 1);
|
||||||
preset.numberOfSlots--;
|
preset.numberOfSlots--;
|
||||||
await fetch('/savequickreply', {
|
await fetch('/savequickreply', {
|
||||||
|
@ -2642,7 +2642,7 @@ $('#sd_dropdown [id]').on('click', function () {
|
|||||||
|
|
||||||
jQuery(async () => {
|
jQuery(async () => {
|
||||||
registerSlashCommand('imagine', generatePicture, ['sd', 'img', 'image'], helpString, true, true);
|
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. <tt>/imagine-comfy-workflow MyWorkflow</tt>')
|
registerSlashCommand('imagine-comfy-workflow', changeComfyWorkflow, ['icw'], '(workflowName) - change the workflow to be used for image generation with ComfyUI, e.g. <tt>/imagine-comfy-workflow MyWorkflow</tt>');
|
||||||
|
|
||||||
$('#extensions_settings').append(renderExtensionTemplate('stable-diffusion', 'settings', defaultSettings));
|
$('#extensions_settings').append(renderExtensionTemplate('stable-diffusion', 'settings', defaultSettings));
|
||||||
$('#sd_source').on('change', onSourceChange);
|
$('#sd_source').on('change', onSourceChange);
|
||||||
|
Reference in New Issue
Block a user