Fixes relative path for fetching the style when set

Signed-off-by: Charles Parmentier <charles.parmentier@hotmail.com>
This commit is contained in:
Charles Parmentier 2020-03-06 00:07:06 +01:00
parent 97628595ed
commit 856fc01fb9

View file

@ -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