mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Update src/settings/SettingsStore.ts
Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
cf7b4dd311
commit
8e9ff05762
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ export default class SettingsStore {
|
|||
* @param {string} settingName The setting to look up.
|
||||
* @return {boolean} True if the setting is enabled.
|
||||
*/
|
||||
public static isEnabled(settingName: string) {
|
||||
public static isEnabled(settingName: string): boolean {
|
||||
if (!SETTINGS[settingName]) return false;
|
||||
return SETTINGS[settingName].controller ? !SETTINGS[settingName].controller.settingDisabled : true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue