Make the logger bind the function with the prefixed args rather than returning an anon function
This commit is contained in:
parent
064e2fda7e
commit
463b0c4553
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ const augmentedProps = new Set([
|
|||
export const Logger = new Proxy(console, {
|
||||
get(target, prop, _receiver) {
|
||||
if (augmentedProps.has(prop)) {
|
||||
return (...args) => target[prop](game.system.id, `|`, ...args);
|
||||
return target[prop].bind(target, game.system.id, `|`);
|
||||
};
|
||||
return target[prop];
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue