Use ID constant
This commit is contained in:
parent
25dbb188c5
commit
b690ec5668
1 changed files with 5 additions and 3 deletions
|
|
@ -17,13 +17,15 @@ export function chatSidebarBackground() {
|
|||
requiresReload: false,
|
||||
onChange: (newValue) => {
|
||||
Logger.debug(`setting:${key} | Setting to ${newValue}`);
|
||||
document.body.classList.toggle(`oft-${key}`, newValue);
|
||||
document.body.classList.toggle(`${__ID}-${key}`, newValue);
|
||||
},
|
||||
});
|
||||
// #endregion Registration
|
||||
|
||||
// #region Implementation
|
||||
if (game.settings.get(__ID, key)) {
|
||||
Logger.debug(`setting:${key} | Adding chat background`);
|
||||
document.body.classList.add(`oft-${key}`);
|
||||
document.body.classList.add(`${__ID}-${key}`);
|
||||
};
|
||||
// #endregion Registration
|
||||
// #endregion Implementation
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue