mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#1420 Revert undefined name variable resolution
This commit is contained in:
@ -95,10 +95,6 @@ function decrementGlobalVariable(name) {
|
|||||||
* @returns {string} Variable value or the string literal
|
* @returns {string} Variable value or the string literal
|
||||||
*/
|
*/
|
||||||
export function resolveVariable(name) {
|
export function resolveVariable(name) {
|
||||||
if (name === undefined) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (existsLocalVariable(name)) {
|
if (existsLocalVariable(name)) {
|
||||||
return getLocalVariable(name);
|
return getLocalVariable(name);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user