]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix embed lint
authorChocobozzz <me@florianbigard.com>
Wed, 14 Feb 2018 15:02:16 +0000 (16:02 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 14 Feb 2018 15:03:09 +0000 (16:03 +0100)
client/src/standalone/videos/embed.ts

index d0676968e386b2bbebd816b492f9d69b709ba780..3193ae6ef560df29a8e4674d41fd194039a45ca4 100644 (file)
@@ -6,9 +6,9 @@ import '../../assets/player/peertube-videojs-plugin'
 import 'videojs-dock/dist/videojs-dock.es.js'
 import { VideoDetails } from '../../../../shared'
 
-async function loadVideoInfo (videoId: string) {
+async function loadVideoInfo (videoId: string): Promise<VideoDetails> {
   const response = await fetch(window.location.origin + '/api/v1/videos/' + videoId)
-  return response.json();
+  return response.json()
 }
 
 const urlParts = window.location.href.split('/')
@@ -42,6 +42,4 @@ loadVideoInfo(videoId)
       })
     })
   })
-  .catch(err => {
-    console.error(err);
-  })
+  .catch(err => console.error(err))