diff --git a/public/script.js b/public/script.js index e398454a9..e68f22465 100644 --- a/public/script.js +++ b/public/script.js @@ -283,6 +283,10 @@ DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => { case 'class': { if (data.attrValue) { data.attrValue = data.attrValue.split(' ').map((v) => { + if (v.startsWith('fa-') || v.startsWith('note-') || v === 'monospace') { + return v; + } + return "custom-" + v; }).join(' '); } @@ -7902,7 +7906,7 @@ jQuery(async function () { } registerSlashCommand('dupe', DupeChar, [], '– duplicates the currently selected character', true, true); - registerSlashCommand('api', connectAPISlash, [], `(${Object.keys(CONNECT_API_MAP)}) – connect to an API`, true, true); + registerSlashCommand('api', connectAPISlash, [], `(${Object.keys(CONNECT_API_MAP).join(', ')}) – connect to an API`, true, true); registerSlashCommand('impersonate', doImpersonate, ['imp'], '– calls an impersonation response', true, true); registerSlashCommand('delchat', doDeleteChat, [], '– deletes the current chat', true, true); registerSlashCommand('closechat', doCloseChat, [], '– closes the current chat', true, true); diff --git a/public/scripts/templates/welcome.html b/public/scripts/templates/welcome.html index 42000fb70..1b154ab36 100644 --- a/public/scripts/templates/welcome.html +++ b/public/scripts/templates/welcome.html @@ -15,7 +15,7 @@