Skip to content

Commit

Permalink
feat(common): cambio de url embebida de vimeo
Browse files Browse the repository at this point in the history
  • Loading branch information
fakel authored and lupomontero committed Jul 5, 2022
1 parent 565b803 commit 3ad4cfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ const linkProviders = [
}),
getElement: (document, a, urlObj) => {
const videoId = urlObj.pathname.slice(1);
const id = videoId.split('/')[0]
const h = videoId.split('/')[1]
const el = Object.assign(document.createElement('iframe'), {
width: 640,
height: 360,
src: `https://player.vimeo.com/video/${videoId}?title=0&byline=0&portrait=0`,
src: `https://player.vimeo.com/video/${id}?h=${h}&title=0&byline=0&portrait=0`,
frameBorder: '0',
scrolling: 'no',
});
Expand Down

0 comments on commit 3ad4cfa

Please sign in to comment.