[Index] Tweak how log is set globally

This commit is contained in:
Ducko 2022-03-28 08:16:24 +01:00
parent e28fc5864b
commit fad51056a4
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
const log = (area, ...args) => console.log(`[\x1B[38;2;88;101;242mOpenAsar\x1B[0m > ${area}]`, ...args);
global.log = log; // Make log global for easy usage everywhere
const log = global.log = (area, ...args) => console.log(`[\x1B[38;2;88;101;242mOpenAsar\x1B[0m > ${area}]`, ...args); // Make log global for easy usage everywhere
global.oaVersion = 'nightly';