Skip to content

Commit

Permalink
Merge branch 'main' of github.com:nuxt/scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jun 5, 2024
2 parents c5dff89 + befc6af commit a503513
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/runtime/components/ScriptVimeoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const props = withDefaults(defineProps<{
rootAttrs?: HTMLAttributes
aboveTheFold?: boolean
// copied from @types/vimeo__player
id: number | undefined
id?: number | undefined
url?: string | undefined
autopause?: boolean | undefined
autoplay?: boolean | undefined
Expand Down Expand Up @@ -170,8 +170,7 @@ onMounted(() => {
$script.then(async ({ Vimeo }) => {
// filter props for false values
player = new Vimeo.Player(elVimeo.value, {
...props,
url: encodeURI(`https://vimeo.com/${props.id}`),
...props
})
if (clickTriggered) {
player!.play()
Expand Down

0 comments on commit a503513

Please sign in to comment.