From 1574f86654d647a7436aeb368fe967417d512fa3 Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Wed, 17 Jul 2024 17:57:06 +0530 Subject: [PATCH] fix: add comment to using base url from local storage --- apps/OpenSign/src/components/pdf/PlaceholderBorder.js | 4 ++-- apps/OpenSign/src/constant/Utils.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/OpenSign/src/components/pdf/PlaceholderBorder.js b/apps/OpenSign/src/components/pdf/PlaceholderBorder.js index 882578137..aa1ac500b 100644 --- a/apps/OpenSign/src/components/pdf/PlaceholderBorder.js +++ b/apps/OpenSign/src/components/pdf/PlaceholderBorder.js @@ -51,8 +51,8 @@ function PlaceholderBorder(props) { style={{ borderColor: themeColor, borderStyle: "dashed", - minWidth: handleMinWidth() || "", - minHeight: handleMinHeight() || "", + minWidth: handleMinWidth() || 0, + minHeight: handleMinHeight() || 0, borderWidth: "0.2px", overflow: "hidden" }} diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.js index 5c60c37e1..978217590 100644 --- a/apps/OpenSign/src/constant/Utils.js +++ b/apps/OpenSign/src/constant/Utils.js @@ -1998,6 +1998,8 @@ export const handleToPrint = async (event, pdfUrl, setIsDownloading) => { setIsDownloading("pdf"); try { // const url = await Parse.Cloud.run("getsignedurl", { url: pdfUrl }); + //`localStorage.getItem("baseUrl")` is also use in public-profile flow for public-sign + //if we give this `appInfo.baseUrl` as a base url then in public-profile it will create base url of it's window.location.origin ex- opensign.me which is not base url const axiosRes = await axios.post( `${localStorage.getItem("baseUrl")}/functions/getsignedurl`, { url: pdfUrl },