Skip to content

Instantly share code, notes, and snippets.

@borlaym
Created October 3, 2019 13:45
Show Gist options
  • Save borlaym/b8995bfa4ceb78a78543758221321803 to your computer and use it in GitHub Desktop.
Save borlaym/b8995bfa4ceb78a78543758221321803 to your computer and use it in GitHub Desktop.
The issue
get featuredVideoUrl(): ?string {
if (this.featuredMedia && this.featuredMedia.id) {
let videoParams;
switch (this.featuredMedia.type) {
case 'YoutubeVideo':
videoParams = {
id: `youtube-video-${this.featuredMedia.id}`,
start: this.featuredMedia.start
};
break;
// ...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment