Lint getDefaultValue
parent
4e6748416c
commit
132a753deb
|
@ -373,9 +373,10 @@ export default class SettingsStore {
|
||||||
/**
|
/**
|
||||||
* Gets the default value of a setting.
|
* Gets the default value of a setting.
|
||||||
* @param {string} settingName The name of the setting to read the value of.
|
* @param {string} settingName The name of the setting to read the value of.
|
||||||
|
* @param {String} roomId The room ID to read the setting value in, may be null.
|
||||||
* @return {*} The default value
|
* @return {*} The default value
|
||||||
*/
|
*/
|
||||||
static getDefaultValue(settingName, roomId = null, excludeDefault = false) {
|
static getDefaultValue(settingName) {
|
||||||
// Verify that the setting is actually a setting
|
// Verify that the setting is actually a setting
|
||||||
if (!SETTINGS[settingName]) {
|
if (!SETTINGS[settingName]) {
|
||||||
throw new Error("Setting '" + settingName + "' does not appear to be a setting.");
|
throw new Error("Setting '" + settingName + "' does not appear to be a setting.");
|
||||||
|
|
Loading…
Reference in New Issue