From 15c6e2e0d2b0496f99d0fc220eaae1727ac14f48 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 6 Jul 2023 15:25:23 +0200 Subject: [PATCH] fix iframe embed urls --- src/views/Static.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/Static.vue b/src/views/Static.vue index 1f46da0..6899762 100644 --- a/src/views/Static.vue +++ b/src/views/Static.vue @@ -27,13 +27,15 @@ export default { // console.log('videolinks', videolinks); for (let link of videolinks){ console.log('videolink', link); - let iframe; + let url, iframe; switch (link[1]) { case 'vimeo.com': - iframe = `` + url = `https://player.vimeo.com/video/${link[3]}`; + iframe = `` break; case 'www.youtube.com': - iframe = `` + url = `https://www.youtube.com/embed/${link[3]}`; + iframe = `` break; } console.log('iframe', iframe);