diff options
author | Sheogorath | 2020-03-21 16:19:17 +0100 |
---|---|---|
committer | Sheogorath | 2020-03-21 16:20:01 +0100 |
commit | 840109b129647476af8c2cd2575b5911ec16c0dd (patch) | |
tree | 6e6ccabd84bb9b1023ec8a432abf8e26d7511762 /lib/web/note | |
parent | a9d98d4b529e6dd4a4f978dd8facd4bf5a20861e (diff) |
Backport Fix for relative theme path
This commit backport 856fc01fb9b30489b254f2ef9d29de80aa189118
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'lib/web/note')
-rw-r--r-- | lib/web/note/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |