From 0c827703c1cf24cd6a04b56dd25de483873fe0f3 Mon Sep 17 00:00:00 2001 From: butlerx Date: Fri, 2 Jun 2017 11:34:35 +0100 Subject: switch to __dirname --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index fe70a0f1..247f85f2 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -27,7 +27,7 @@ exports.getImageMimeType = function getImageMimeType (imagePath) { } exports.isRevealTheme = function isRevealTheme (theme) { - if (fs.existsSync(path.join(process.cwd(), 'public', 'build', 'reveal.js', 'css', 'theme', theme + '.css'))) { + if (fs.existsSync(path.join(__dirname, '..', 'public', 'build', 'reveal.js', 'css', 'theme', theme + '.css'))) { return theme } return undefined -- cgit v1.2.3