From ebec26154c4ededc0346f84647a35a6da5774147 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 20 Dec 2023 18:37:34 +0200 Subject: [PATCH] Welcome message fixed --- public/script.js | 6 +++++- public/scripts/templates/welcome.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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 @@

Confused or lost?