mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use boolean selector
This commit is contained in:
@@ -2267,7 +2267,7 @@ export async function importEmbeddedWorldInfo(skipPopup = false) {
|
|||||||
|
|
||||||
function onWorldInfoChange(args, text) {
|
function onWorldInfoChange(args, text) {
|
||||||
if (args !== '__notSlashCommand__') { // if it's a slash command
|
if (args !== '__notSlashCommand__') { // if it's a slash command
|
||||||
const silent = args.silent == 'true';
|
const silent = isTrueBoolean(args.silent);
|
||||||
if (text.trim() !== '') { // and args are provided
|
if (text.trim() !== '') { // and args are provided
|
||||||
const slashInputSplitText = text.trim().toLowerCase().split(',');
|
const slashInputSplitText = text.trim().toLowerCase().split(',');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user