mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
Fix /echo mishandling non-string values
This commit is contained in:
parent
abdd1f3e6e
commit
daa582bb73
@ -2015,6 +2015,9 @@ async function echoCallback(args, value) {
|
||||
args.severity = null;
|
||||
}
|
||||
|
||||
// Make sure that the value is a string
|
||||
value = String(value);
|
||||
|
||||
const title = args.title ? args.title : undefined;
|
||||
const severity = args.severity ? args.severity : 'info';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user