Created
October 3, 2019 13:45
-
-
Save borlaym/b8995bfa4ceb78a78543758221321803 to your computer and use it in GitHub Desktop.
The issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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