Welcome message fixed
This commit is contained in:
parent
041b9d4b01
commit
ebec26154c
|
@ -283,6 +283,10 @@ DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => {
|
||||||
case 'class': {
|
case 'class': {
|
||||||
if (data.attrValue) {
|
if (data.attrValue) {
|
||||||
data.attrValue = data.attrValue.split(' ').map((v) => {
|
data.attrValue = data.attrValue.split(' ').map((v) => {
|
||||||
|
if (v.startsWith('fa-') || v.startsWith('note-') || v === 'monospace') {
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
|
||||||
return "custom-" + v;
|
return "custom-" + v;
|
||||||
}).join(' ');
|
}).join(' ');
|
||||||
}
|
}
|
||||||
|
@ -7902,7 +7906,7 @@ jQuery(async function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
registerSlashCommand('dupe', DupeChar, [], '– duplicates the currently selected character', true, true);
|
registerSlashCommand('dupe', DupeChar, [], '– duplicates the currently selected character', true, true);
|
||||||
registerSlashCommand('api', connectAPISlash, [], `<span class="monospace">(${Object.keys(CONNECT_API_MAP)})</span> – connect to an API`, true, true);
|
registerSlashCommand('api', connectAPISlash, [], `<span class="monospace">(${Object.keys(CONNECT_API_MAP).join(', ')})</span> – connect to an API`, true, true);
|
||||||
registerSlashCommand('impersonate', doImpersonate, ['imp'], '– calls an impersonation response', true, true);
|
registerSlashCommand('impersonate', doImpersonate, ['imp'], '– calls an impersonation response', true, true);
|
||||||
registerSlashCommand('delchat', doDeleteChat, [], '– deletes the current chat', true, true);
|
registerSlashCommand('delchat', doDeleteChat, [], '– deletes the current chat', true, true);
|
||||||
registerSlashCommand('closechat', doCloseChat, [], '– closes the current chat', true, true);
|
registerSlashCommand('closechat', doCloseChat, [], '– closes the current chat', true, true);
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<h3>Confused or lost?</h3>
|
<h3>Confused or lost?</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<span class="note-link-span">?</span> - click these icons!
|
<span class="note-link-span"><a class="fa-solid fa-circle-question" target="_blank" href="https://docs.sillytavern.app/"></a></span> - click these icons!
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Enter <code>/?</code> in the chat bar
|
Enter <code>/?</code> in the chat bar
|
||||||
|
|
Loading…
Reference in New Issue