Skip to content

Commit

Permalink
refactor: check for 'on' instead of truthiness
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias43 committed Sep 29, 2023
1 parent c6a855c commit e306dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
cadenzaClient.show(embeddingTargetId, {
hideMainHeaderAndFooter: (hideMainHeaderAndFooter === 'on'),
hideWorkbookToolBar: (hideWorkbookToolBar === 'on'),
...(jasperReportAsPdf && { mediaType: 'application/pdf' })
...(jasperReportAsPdf === 'on' && { mediaType: 'application/pdf' })
});
},
showMap ({ embeddingTargetId, useMapSrs, geometry, mapExtent, locationFinder }) {
Expand Down

0 comments on commit e306dcb

Please sign in to comment.