Skip to content

Commit

Permalink
Merge pull request #570 from alexander-heimbuch/fix/documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Jul 11, 2020
2 parents 7efd483 + c3d63aa commit b61e9a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web-player/src/lib/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const fetchTemplate = async node => {
return node.innerHTML
}

return variant('xl')
return await variant('xl')
}

export default async selector => {
Expand Down
6 changes: 4 additions & 2 deletions docs/web-player/.vuepress/components/PodloveWebPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
default: null
}
},
mounted: function () {
window.podlovePlayer(this.$el, this.episode, this.config).then(store => {
async mounted() {
const config = await fetch(this.config).then(response => response.json())
const base = this.$site.base
window.podlovePlayer(this.$el, this.episode, { ...config, base }).then(store => {
this.$emit('ready', store)
return store
}).then(window.registerExternalEvents(this.id))
Expand Down

0 comments on commit b61e9a3

Please sign in to comment.