mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 12:27:17 +00:00
Support SSR
This commit is contained in:
@@ -121,7 +121,8 @@ const Blog = ({ loading, blog, googleAnalytics }) => {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
window.open(article.link, '_blank');
|
||||
typeof window !== 'undefined' &&
|
||||
window.open(article.link, '_blank');
|
||||
}}
|
||||
>
|
||||
<div className="p-8 h-full w-full">
|
||||
|
||||
Reference in New Issue
Block a user