Use boolean selector
This commit is contained in:
parent
49483e2e21
commit
247048ebfa
|
@ -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(',');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue