diff options
author | butlerx | 2017-06-02 11:34:35 +0100 |
---|---|---|
committer | butlerx | 2017-06-02 11:34:35 +0100 |
commit | 0c827703c1cf24cd6a04b56dd25de483873fe0f3 (patch) | |
tree | fa71fb918ed6cfa451b1a72188a9000b81a29dba | |
parent | c531d96f6617663dae8534aba2623f541c7d12de (diff) |
switch to __dirname
Diffstat (limited to '')
-rw-r--r-- | lib/utils.js | 2 |
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 |