Using fetch instead of xhr, grabbing title for YouTube

This commit is contained in:
Sam Potts
2017-11-16 11:38:06 +01:00
parent c64b8f6940
commit d7a1c44281
12 changed files with 47 additions and 50 deletions

View File

@ -150,7 +150,7 @@ document.addEventListener('DOMContentLoaded', () => {
title: 'View From A Blue Moon',
sources: [
{
src: 'https://www.youtube.com/watch?v=bTqVqk7FSmY',
src: 'https://youtube.com/watch?v=bTqVqk7FSmY',
type: 'youtube',
},
],
@ -161,7 +161,6 @@ document.addEventListener('DOMContentLoaded', () => {
case types.vimeo:
player.source = {
type: 'video',
title: 'View From A Blue Moon',
sources: [
{
src: 'https://vimeo.com/76979871',