From: Chocobozzz Date: Wed, 14 Feb 2018 15:02:16 +0000 (+0100) Subject: Fix embed lint X-Git-Tag: v0.0.24-alpha~11 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a16aee73db627908dc83eb5c29b213ce8d1fab39;p=github%2FChocobozzz%2FPeerTube.git Fix embed lint --- diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index d0676968e..3193ae6ef 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -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 { 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))