Backport Fix for relative theme path

This commit backport 856fc01fb9

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
Sheogorath 2020-03-21 16:19:17 +01:00
parent a9d98d4b52
commit 840109b129
No known key found for this signature in database
GPG key ID: C9B1C80737B9CE18

View file

@ -102,7 +102,7 @@ exports.getPublishData = function (req, res, note, callback) {
}
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 undefined