mirror of https://github.com/status-im/codimd.git
switch to __dirname
This commit is contained in:
parent
c531d96f66
commit
0c827703c1
|
@ -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 New Issue