mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 02:47:52 +01:00
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…
x
Reference in New Issue
Block a user