From dc7354ecac4f37c331850a5947830cee700e326b Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Mon, 9 Oct 2023 15:16:23 +0300 Subject: [PATCH] Return a hint message if the user provided a pdf url with disabled cores --- packages/UI/docs/pdf_viewer.md | 2 +- packages/UI/docs/script_editor.md | 2 +- packages/UI/src/components/PDFSignerViewComponent.vue | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/UI/docs/pdf_viewer.md b/packages/UI/docs/pdf_viewer.md index b0aa105a68..ddbc0f536b 100644 --- a/packages/UI/docs/pdf_viewer.md +++ b/packages/UI/docs/pdf_viewer.md @@ -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. diff --git a/packages/UI/docs/script_editor.md b/packages/UI/docs/script_editor.md index 1d7ce7e200..6b339cdf3b 100644 --- a/packages/UI/docs/script_editor.md +++ b/packages/UI/docs/script_editor.md @@ -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. diff --git a/packages/UI/src/components/PDFSignerViewComponent.vue b/packages/UI/src/components/PDFSignerViewComponent.vue index f4c308d184..680791384b 100644 --- a/packages/UI/src/components/PDFSignerViewComponent.vue +++ b/packages/UI/src/components/PDFSignerViewComponent.vue @@ -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; }