Commit 5e85d4a4 authored by Fred Chasen's avatar Fred Chasen

Merge branch 'patch-1' into 'master'

previewer.js properly check content

See merge request tools/pagedjs!36
parents e5d85ad2 e3bb4d30
......@@ -115,7 +115,7 @@ class Previewer {
async preview(content, stylesheets, renderTo) {
if (!content) {
if (typeof content === undefined || content === null) {
content = this.wrapContent();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment