Skip to content

Commit 7964b10

Browse files
committed
lots of changes ;)
1 parent 1779881 commit 7964b10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export function convertShortLinkToEmbedLink(shortLink: string) {
2+
const videoId = shortLink.split("https://www.youtube.com/watch?v=")[1];
3+
return `https://www.youtube.com/embed/${videoId}`;
4+
}

0 commit comments

Comments
 (0)