Rename __ID to __ID__
This commit is contained in:
parent
d9bea36444
commit
523d9c1da2
9 changed files with 43 additions and 33 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { __ID } from "../consts.mjs";
|
||||
import { __ID__ } from "../consts.mjs";
|
||||
import { Logger } from "../utils/Logger.mjs";
|
||||
|
||||
const key = `chatSidebarBackground`;
|
||||
|
|
@ -7,7 +7,7 @@ export function chatSidebarBackground() {
|
|||
|
||||
// #region Registration
|
||||
Logger.log(`Registering setting: ${key}`);
|
||||
game.settings.register(__ID, key, {
|
||||
game.settings.register(__ID__, key, {
|
||||
name: `OFT.setting.${key}.name`,
|
||||
hint: `OFT.setting.${key}.hint`,
|
||||
scope: `user`,
|
||||
|
|
@ -17,15 +17,15 @@ export function chatSidebarBackground() {
|
|||
requiresReload: false,
|
||||
onChange: (newValue) => {
|
||||
Logger.debug(`setting:${key} | Setting to ${newValue}`);
|
||||
document.body.classList.toggle(`${__ID}-${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`);
|
||||
document.body.classList.add(`${__ID}-${key}`);
|
||||
document.body.classList.add(`${__ID__}-${key}`);
|
||||
};
|
||||
// #endregion Implementation
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue