Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update index.tsx

Steven Teybc538f505dbc
diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsx
index adcc877c2e..73b589c145 100644
--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx
@@ -351,8 +351,8 @@ function AddEditLinkModal({
router.push("/links");
setShowAddEditLinkModal(false);
}
- // copy shortlink to clipboard when adding a new link (if document is focused)
- if (!props && document.hasFocus()) {
+ // copy shortlink to clipboard when adding a new link
+ if (!props) {
try {
await navigator.clipboard.writeText(
linkConstructor({