diff options
author | Wu Cheng-Han | 2017-06-05 01:12:40 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-06-05 01:12:40 +0800 |
commit | ca959012047bef3c0b2dd6f2974a8373a6615125 (patch) | |
tree | 35b7c8b9c81467f720f3c502245db08f24cea768 | |
parent | 9b1670381961856a2f398b44273d3b5b6126a9e7 (diff) |
Fix slide might not provide slideOptions meta
Diffstat (limited to '')
-rwxr-xr-x | lib/response.js | 2 |
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, |