Skip to content

Commit

Permalink
add: open email client when clicked on contact
Browse files Browse the repository at this point in the history
  • Loading branch information
benya7 committed Oct 6, 2024
1 parent fec99fc commit 7d1f00b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/renderer/src/components/layout/appFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
class="mb-2 pl-1"
min-height="12px"
height="24px"
@click="router.push(item.path)"
@click="item.path === '/contact' ? openEmailClient() : router.push(item.path)"
></v-list-item>
</v-list>
</div>
Expand Down Expand Up @@ -104,4 +104,8 @@ const scrollToTop = () => {
behavior: 'smooth',
});
};
const openEmailClient = () => {
window.location.href = 'mailto:wings@riff.cc';
};
</script>

0 comments on commit 7d1f00b

Please sign in to comment.