Backport Fix for relative theme path
This commit backport 856fc01fb9b30489b254f2ef9d29de80aa189118 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
a9d98d4b52
commit
840109b129
@ -102,7 +102,7 @@ exports.getPublishData = function (req, res, note, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isRevealTheme (theme) {
|
function isRevealTheme (theme) {
|
||||||
if (fs.existsSync(path.join(__dirname, '..', '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