mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix enumProvider not getting scope
This commit is contained in:
@ -1078,8 +1078,8 @@ export function initDefaultSlashCommands() {
|
|||||||
description: 'scoped variable or qr label',
|
description: 'scoped variable or qr label',
|
||||||
typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.STRING, ARGUMENT_TYPE.CLOSURE],
|
typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.STRING, ARGUMENT_TYPE.CLOSURE],
|
||||||
isRequired: true,
|
isRequired: true,
|
||||||
enumProvider: () => [
|
enumProvider: (executor, scope) => [
|
||||||
...commonEnumProviders.variables('scope')(),
|
...commonEnumProviders.variables('scope')(executor, scope),
|
||||||
...(typeof window['qrEnumProviderExecutables'] === 'function') ? window['qrEnumProviderExecutables']() : [],
|
...(typeof window['qrEnumProviderExecutables'] === 'function') ? window['qrEnumProviderExecutables']() : [],
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
Reference in New Issue
Block a user