mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +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">
|
||||
|
||||
@@ -72,7 +72,7 @@ const Project = ({ repo, loading, github, googleAnalytics }) => {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
window.open(item.html_url, '_blank');
|
||||
typeof window !== 'undefined' && window.open(item.html_url, '_blank');
|
||||
}}
|
||||
>
|
||||
<div className="flex justify-between flex-col p-8 h-full w-full">
|
||||
|
||||
Reference in New Issue
Block a user