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:
parent
a148e4d799
commit
1e79ef8a4e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue