Use ID constant

This commit is contained in:
Oliver 2025-12-07 12:24:10 -07:00
parent 25dbb188c5
commit b690ec5668

View file

@ -17,13 +17,15 @@ export function chatSidebarBackground() {
requiresReload: false, requiresReload: false,
onChange: (newValue) => { onChange: (newValue) => {
Logger.debug(`setting:${key} | Setting to ${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)) { if (game.settings.get(__ID, key)) {
Logger.debug(`setting:${key} | Adding chat background`); Logger.debug(`setting:${key} | Adding chat background`);
document.body.classList.add(`oft-${key}`); document.body.classList.add(`${__ID}-${key}`);
}; };
// #endregion Registration // #endregion Implementation
}; };