1
0
Fork 0
mirror of https://github.com/hedgedoc/hedgedoc.git synced 2025-04-04 11:26:08 +00:00

Fix relative path in web/note/util

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-23 14:45:51 +02:00
parent a148e4d799
commit 1e79ef8a4e
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -71,7 +71,7 @@ export function findNoteOrCreate (req, res, callback: (note: any) => void, inclu
}
function isRevealTheme (theme: string) {
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