Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Aymkdn committed Jan 23, 2023
1 parent 2b0ab4a commit 5ea1b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h1>HTML to PDFMake convertor</h1>
errorStyles.innerHTML = err;
}
var val = htmlToPdfmake(code.value, options);
var dd = {content:val};
var dd = (typeof val.content !== "undefined" ? val : {content:val});
if (typeof styles === 'object') dd.styles = styles;
document.querySelector('#result').value = "var dd = " + JSON.stringify(dd, null, ' ');
// is IE ?
Expand Down

0 comments on commit 5ea1b13

Please sign in to comment.