mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Fixes relative path for fetching the style when set
Signed-off-by: Charles Parmentier <charles.parmentier@hotmail.com>
This commit is contained in:
parent
97628595ed
commit
856fc01fb9
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ export module NoteUtils {
|
|||
}
|
||||
|
||||
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