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
+1 -1
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]" />