mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-16 17:32:48 +00:00
Backport Fix for relative theme path
This commit backport 856fc01fb9
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
a9d98d4b52
commit
840109b129
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue