diff --git a/src/routers/resource.ts b/src/routers/resource.ts index f0acc4d..f9acf7c 100644 --- a/src/routers/resource.ts +++ b/src/routers/resource.ts @@ -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