Remove confusing toast from listvar

This commit is contained in:
Cohee 2024-10-01 19:15:53 +03:00
parent 89642f217d
commit 33222191be

View File

@ -313,9 +313,6 @@ async function listVariablesCallback(args) {
if (args.format) {
toastr.warning(`Legacy argument 'format' with value '${args.format}' is deprecated. Please use 'return' instead. Routing to the correct return type...`, 'Deprecation warning');
const type = String(args?.format).toLowerCase().trim();
if (!chat_metadata.script_injects || !Object.keys(chat_metadata.script_injects).length) {
type !== 'none' && toastr.info('No script injections for the current chat');
}
switch (type) {
case 'none':
returnType = 'none';