mirror of
https://github.com/status-im/codimd.git
synced 2025-01-15 18:14:52 +00:00
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) {
|
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 theme
|
||||||
}
|
}
|
||||||
return undefined
|
return undefined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user