mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
This commit is contained in:
@ -58,7 +58,7 @@ export const DocumentShareButton = ({ token, documentId, className }: DocumentSh
|
|||||||
|
|
||||||
const onCopyClick = async () => {
|
const onCopyClick = async () => {
|
||||||
if (shareLink) {
|
if (shareLink) {
|
||||||
await copyShareLink(`${window.location.origin}/share/${shareLink.slug}`);
|
await copyShareLink(`${process.env.NEXT_PUBLIC_WEBAPP_URL}/share/${shareLink.slug}`);
|
||||||
} else {
|
} else {
|
||||||
await createAndCopyShareLink({
|
await createAndCopyShareLink({
|
||||||
token,
|
token,
|
||||||
|
|||||||
Reference in New Issue
Block a user