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";
|
||||
|
||||
const augmentedProps = new Set([
|
||||
`debug`,
|
||||
|
|
@ -28,7 +28,7 @@ export const Logger = new Proxy(console, {
|
|||
get(target, prop, _receiver) {
|
||||
|
||||
if (inDev == null) {
|
||||
inDev = game.modules.get(__ID).flags.inDev;
|
||||
inDev = game.modules.get(__ID__).flags.inDev;
|
||||
};
|
||||
|
||||
if (!inDev && !happensInProd.has(prop)) {
|
||||
|
|
@ -36,7 +36,7 @@ export const Logger = new Proxy(console, {
|
|||
};
|
||||
|
||||
if (augmentedProps.has(prop)) {
|
||||
return target[prop].bind(target, __ID, `|`);
|
||||
return target[prop].bind(target, __ID__, `|`);
|
||||
};
|
||||
return target[prop];
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue