Skip to content

Commit

Permalink
Return a hint message if the user provided a pdf url with disabled cores
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-Emad committed Oct 9, 2023
1 parent 5e14831 commit dc7354e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/UI/docs/pdf_viewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To use the PDF Signer Web Component, follow these steps:

2. Navigate to the `repository/packages/UI` directory.

3. Chose wich provider you gonna use [see providers section](#using-providers-and-extensions)
3. Choose which provider you are going to use [see providers section](#using-providers-and-extensions)

4. Run `yarn build` to generate the required distribution files.

Expand Down
2 changes: 1 addition & 1 deletion packages/UI/docs/script_editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To create an instance of the Script Editor, follow these steps:

2. Navigate to the `repository/packages/UI` directory.

3. Chose wich provider you gonna use [see providers section](#using-providers-and-extensions)
3. Choose which provider you are going to use [see providers section](#using-providers-and-extensions)

4. Run `yarn build` to generate the required distribution files.

Expand Down
5 changes: 4 additions & 1 deletion packages/UI/src/components/PDFSignerViewComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ export default {
pdfData.value = data.toString();
numOfPages.value = pdf.numPages;
} catch (error: any) {
showError({ isError: true, errorMessage: error.message });
showError({
isError: true,
errorMessage: "Please make sure that you have provided a PDF URL with CORS enabled.",
});
} finally {
loadingPdf.value = false;
}
Expand Down

0 comments on commit dc7354e

Please sign in to comment.