Skip to content

Commit 0c82770

Browse files
committed
switch to __dirname
1 parent c531d96 commit 0c82770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports.getImageMimeType = function getImageMimeType (imagePath) {
2727
}
2828

2929
exports.isRevealTheme = function isRevealTheme (theme) {
30-
if (fs.existsSync(path.join(process.cwd(), 'public', 'build', 'reveal.js', 'css', 'theme', theme + '.css'))) {
30+
if (fs.existsSync(path.join(__dirname, '..', 'public', 'build', 'reveal.js', 'css', 'theme', theme + '.css'))) {
3131
return theme
3232
}
3333
return undefined

0 commit comments

Comments
 (0)