From 856fc01fb9b30489b254f2ef9d29de80aa189118 Mon Sep 17 00:00:00 2001 From: Charles Parmentier Date: Fri, 6 Mar 2020 00:07:06 +0100 Subject: [PATCH] Fixes relative path for fetching the style when set Signed-off-by: Charles Parmentier --- lib/web/note/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/note/util.ts b/lib/web/note/util.ts index 3dcb42941..ab802bda9 100644 --- a/lib/web/note/util.ts +++ b/lib/web/note/util.ts @@ -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