From 840109b129647476af8c2cd2575b5911ec16c0dd Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sat, 21 Mar 2020 16:19:17 +0100 Subject: Backport Fix for relative theme path This commit backport 856fc01fb9b30489b254f2ef9d29de80aa189118 Signed-off-by: Sheogorath --- lib/web/note/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/web/note/util.js b/lib/web/note/util.js index eadfb1a3..ce3f0d6d 100644 --- a/lib/web/note/util.js +++ b/lib/web/note/util.js @@ -102,7 +102,7 @@ exports.getPublishData = function (req, res, note, callback) { } function isRevealTheme (theme) { - 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 -- cgit v1.2.3