mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-21 14:40:48 +01:00
#1420 Revert undefined name variable resolution
This commit is contained in:
parent
778bca01f3
commit
ca24e550a8
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user