From 0add82b71f5e17314030cff567ff2e798259f4ee Mon Sep 17 00:00:00 2001 From: kissel Date: Tue, 3 Oct 2023 11:21:55 +0200 Subject: [PATCH] fix indentation, add newline --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d4048c64..c1f57914 100644 --- a/README.md +++ b/README.md @@ -70,9 +70,8 @@ cadenzaClient.show('{embeddingTargetId}', { - Cadenza JS does not handle user authentication: If the user is not already logged in, the normal authentication flow of Cadenza will run. By default, the login page would be shown to the user. #### Show the Generated PDF of a Jasper Report View Directly -Views of type "JasperReports report" can be shown in an iFrame like any other view. -But there is an additional option to show only the generated PDF without any Cadenza footers or headers. -This is done by setting the "mediaType" option to "application/pdf". + +Views of type "JasperReports report" can be shown in an iframe like any other view. Additionally, there is an option to show only the generated PDF without any Cadenza footers or headers. This is done by setting the "mediaType" option to "application/pdf". ```javascript cadenzaClient.show('{embeddingTargetId}', { @@ -87,7 +86,7 @@ Cadenza JS uses the [AbortController Web API](https://developer.mozilla.org/en-U ```javascript const abortController = new AbortController(); try { - await cadenzaClient.show('{embeddingTargetId}', { signal: abortController.signal }); + await cadenzaClient.show('{embeddingTargetId}', { signal: abortController.signal }); } catch (error) { if (error.name === 'AbortError') { console.log('Iframe loading was aborted');