summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbutlerx2017-06-02 11:34:35 +0100
committerbutlerx2017-06-02 11:34:35 +0100
commit0c827703c1cf24cd6a04b56dd25de483873fe0f3 (patch)
treefa71fb918ed6cfa451b1a72188a9000b81a29dba
parentc531d96f6617663dae8534aba2623f541c7d12de (diff)
switch to __dirname
Diffstat (limited to '')
-rw-r--r--lib/utils.js2
1 files changed, 1 insertions, 1 deletions
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