Skip to content

Commit

Permalink
fear: add docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryOkafor committed Mar 19, 2024
1 parent 2ef6c47 commit 6d52321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/app/[...shortCode]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ type Params = {
};

const openInNewTab = (url: string) => {
window.open(url, '_blank', 'noopener,noreferrer');
window.open("", '_blank', 'noopener,noreferrer');
window.location.href = url

}
export default function LinkPreview({params}: Params) {
Expand All @@ -36,7 +37,6 @@ export default function LinkPreview({params}: Params) {
useEffect(() => {
if (!handledRedirect.current) {
handledRedirect.current = true

fetchData();
}
}, [params]);
Expand Down

0 comments on commit 6d52321

Please sign in to comment.