summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorWu Cheng-Han2017-06-05 01:12:40 +0800
committerWu Cheng-Han2017-06-05 01:12:40 +0800
commitca959012047bef3c0b2dd6f2974a8373a6615125 (patch)
tree35b7c8b9c81467f720f3c502245db08f24cea768 /lib/response.js
parent9b1670381961856a2f398b44273d3b5b6126a9e7 (diff)
Fix slide might not provide slideOptions meta
Diffstat (limited to 'lib/response.js')
-rwxr-xr-xlib/response.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js
index cda484e7..a22d1e70 100755
--- a/lib/response.js
+++ b/lib/response.js
@@ -575,7 +575,7 @@ function showPublishSlide (req, res, next) {
updatetime: updatetime,
url: origin,
body: markdown,
- theme: utils.isRevealTheme(meta.slideOptions.theme),
+ theme: meta.slideOptions && utils.isRevealTheme(meta.slideOptions.theme),
meta: JSON.stringify(extracted.meta),
useCDN: config.usecdn,
owner: note.owner ? note.owner.id : null,