hotfix on emtpy content: Was unable to open a certain chat without this

This commit is contained in:
Aisu Wata
2023-05-12 00:29:21 -03:00
parent aaa23815fd
commit c06de1e6bd

View File

@ -1183,6 +1183,10 @@ function scrollChatToBottom() {
function substituteParams(content, _name1, _name2) {
_name1 = _name1 ?? name1;
_name2 = _name2 ?? name2;
if (!content) {
console.warn("No content on substituteParams")
return ''
}
content = content.replace(/{{user}}/gi, _name1);
content = content.replace(/{{char}}/gi, _name2);