fix: add comment to using base url from local storage

This commit is contained in:
RaktimaNXG
2024-07-17 17:57:06 +05:30
parent df17bdcd68
commit 1574f86654
2 changed files with 4 additions and 2 deletions
@@ -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"
}}
+2
View File
@@ -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 },