summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
authorSheogorath2020-03-21 16:19:17 +0100
committerSheogorath2020-03-21 16:20:01 +0100
commit840109b129647476af8c2cd2575b5911ec16c0dd (patch)
tree6e6ccabd84bb9b1023ec8a432abf8e26d7511762 /lib/web
parenta9d98d4b529e6dd4a4f978dd8facd4bf5a20861e (diff)
Backport Fix for relative theme path
This commit backport 856fc01fb9b30489b254f2ef9d29de80aa189118 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'lib/web')
-rw-r--r--lib/web/note/util.js2
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