Skip to content

Commit

Permalink
Fix wrong share URL
Browse files Browse the repository at this point in the history
  • Loading branch information
fyrk committed Oct 7, 2023
1 parent d686ef7 commit f22e2f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/ShareButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ export default function ShareButton() {
navigator.share &&
navigator.canShare({ url: url.href }),
]
}, [window.location, navigator.canShare, navigator.share])
}, [
window.location.search,
window.location.href,
navigator.canShare,
navigator.share,
])

return (
<button
Expand Down

0 comments on commit f22e2f7

Please sign in to comment.