Skip to content

Commit

Permalink
fix: escape special characters
Browse files Browse the repository at this point in the history
Co-authored-by: hoshino tsuyoshi <[email protected]>
  • Loading branch information
MH4GF and hoshinotsuyoshi authored Oct 15, 2024
1 parent e7953af commit 28aa0c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const handleSelect = (url: string) => () => {
export const ShareDropdownMenu: FC<Props> = ({ children, lang }) => {
const [open, setOpen] = useState(false)
const { t } = getTranslation(lang)
const url = window.location.href
const title = document.title
const url = encodeURIComponent(window.location.href)
const title = encodeURIComponent(document.title)

return (
<DropdownMenuRoot open={open} onOpenChange={setOpen}>
Expand Down

0 comments on commit 28aa0c0

Please sign in to comment.