| 313 | if (args.format) { | 313 | if (args.format) { |
| 314 | toastr.warning(`Legacy argument 'format' with value '${args.format}' is deprecated. Please use 'return' instead. Routing to the correct return type...`, 'Deprecation warning'); | 314 | toastr.warning(`Legacy argument 'format' with value '${args.format}' is deprecated. Please use 'return' instead. Routing to the correct return type...`, 'Deprecation warning'); |
| 315 | const type = String(args?.format).toLowerCase().trim(); | 315 | const type = String(args?.format).toLowerCase().trim(); |
| 316 | if (!chat_metadata.script_injects || !Object.keys(chat_metadata.script_injects).length) { | | |
| 317 | type !== 'none' && toastr.info('No script injections for the current chat'); | | |
| 318 | } | | |
| 319 | switch (type) { | 316 | switch (type) { |
| 320 | case 'none': | 317 | case 'none': |
| 321 | returnType = 'none'; | 318 | returnType = 'none'; |