fix: post modal open in new tab router back

This commit is contained in:
DIYgod 2023-07-03 18:32:29 +01:00
parent bcf839d178
commit 7e8e7cc185
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export default function SiteModal({ children }: { children: JSX.Element }) {
className="text-3xl absolute bottom-full text-white cursor-pointer"
onClick={() => {
window.open(window.location.href)
setOpen(false)
router.back()
}}
>
<i className="icon-[mingcute--expand-player-line]" />