mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Save setConfigValue export
This commit is contained in:
11
src/util.js
11
src/util.js
@@ -54,7 +54,6 @@ export function getConfig() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the value for the given key from the config object.
|
||||
* @param {string} key - Key to get from the config object
|
||||
@@ -83,6 +82,16 @@ export function getConfigValue(key, defaultValue = null, typeConverter = null) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* THIS FUNCTION IS DEPRECATED AND ONLY EXISTS FOR BACKWARDS COMPATIBILITY. DON'T USE IT.
|
||||
* @param {any} _key Unused
|
||||
* @param {any} _value Unused
|
||||
* @deprecated Configs are read-only. Use environment variables instead.
|
||||
*/
|
||||
export function setConfigValue(_key, _value) {
|
||||
console.trace(color.yellow('setConfigValue is deprecated and should not be used.'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes the Basic Auth header value for the given user and password.
|
||||
* @param {string} auth username:password
|
||||
|
Reference in New Issue
Block a user