Skip to content

Commit

Permalink
fix: only render img on client
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Jan 30, 2024
1 parent 0979f50 commit 782f138
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions projects/Repo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ const { user, repo } = defineProps<{ user: string; repo: string }>();
target="_blank"
style="display: block"
>
<img
:src="`https://github-readme-stats.vercel.app/api/pin/?username=${user}&repo=${repo}${
isDark ? '&theme=dark' : ''
}`"
/>
<ClientOnly>
<img
:src="`https://github-readme-stats.vercel.app/api/pin/?username=${user}&repo=${repo}${
isDark ? '&theme=dark' : ''
}`"
/>
</ClientOnly>
</a>
</template>

0 comments on commit 782f138

Please sign in to comment.