switch to __dirname
This commit is contained in:
parent
c531d96f66
commit
0c827703c1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue