Skip to content

Commit

Permalink
switch to __dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
butlerx committed Jun 2, 2017
1 parent c531d96 commit 0c82770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c82770

Please sign in to comment.