Merge pull request #293 from Cpavrai/release/2.0.x

Fixes relative path for fetching the style
This commit is contained in:
Sheogorath 2020-03-06 13:26:49 +01:00 committed by GitHub
commit 010a3f6f15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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