mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04: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) {
|
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 theme
|
||||||
}
|
}
|
||||||
return undefined
|
return undefined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue