mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-09-15 08:27:37 +00:00
refactor: use global.root_path instead relative paths (#3883)
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
const path = require("node:path");
|
||||
|
||||
const rootPath = path.resolve(`${__dirname}/../`);
|
||||
const Log = require(`${rootPath}/js/logger.js`);
|
||||
const Log = require(`${global.root_path}/js/logger.js`);
|
||||
const os = require("node:os");
|
||||
const fs = require("node:fs");
|
||||
const si = require("systeminformation");
|
||||
|
Reference in New Issue
Block a user