Fix path to spirit list JSON
This commit is contained in:
@@ -15,7 +15,7 @@ const wss = new ws.Server({ server });
|
|||||||
app.use(express.static(path.join(__dirname, 'public')));
|
app.use(express.static(path.join(__dirname, 'public')));
|
||||||
|
|
||||||
// --- Spirits laden ---
|
// --- Spirits laden ---
|
||||||
const SPIRITS_PATH = path.join(__dirname, '..', 'spirits', 'spirit_list.json');
|
const SPIRITS_PATH = path.join(__dirname, '.', 'spirits', 'spirit_list.json');
|
||||||
let spirits = [];
|
let spirits = [];
|
||||||
try {
|
try {
|
||||||
spirits = JSON.parse(fs.readFileSync(SPIRITS_PATH, 'utf8'));
|
spirits = JSON.parse(fs.readFileSync(SPIRITS_PATH, 'utf8'));
|
||||||
|
|||||||
Reference in New Issue
Block a user