8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f450f1 commit d5d0864Copy full SHA for d5d0864
docs/pages/index.vue
@@ -14,20 +14,19 @@ useSeoMeta({
14
ogDescription: page.value.description,
15
ogImage: joinURL(url, '/social-card.png')
16
})
17
-
18
-const videoLink = page.value.hero.links.find(link => link.id === 'intro-video')
19
-videoLink.click = (e) => {
20
- if (e.ctrlKey || e.metaKey) {
21
- return
22
- }
23
- e?.preventDefault()
24
- videoModalOpen.value = true
25
-}
+const videoLink = page.value?.hero?.links?.find(link => link.id === 'intro-video') || {}
26
27
onMounted(() => {
28
mediumZoom('[data-zoom-src]', {
29
margin: 5
30
+ videoLink.click = (e) => {
+ if (e.ctrlKey || e.metaKey) {
+ return
+ }
+ e?.preventDefault()
+ videoModalOpen.value = true
31
32
</script>
33
0 commit comments