Fix not checking proper path type

pull/126/head
tycrek 2 years ago
parent 11d8db4c12
commit ed6595fc3b
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -17,7 +17,7 @@ import express from 'express';
const router = express.Router();
let theme = {};
if (path('share/', 'theme.json'))
if (fs.existsSync(path('share/', 'theme.json')))
theme = fs.readJsonSync(path('share/', 'theme.json'));
// Middleware for parsing the resource ID and handling 404

Loading…
Cancel
Save