aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-14 16:02:16 +0100
committerChocobozzz <me@florianbigard.com>2018-02-14 16:03:09 +0100
commita16aee73db627908dc83eb5c29b213ce8d1fab39 (patch)
tree4d05477ab73ad4baf87c7efd0993ec6c0a07715c
parent1d791a26de648d798df4ee1c04113baf7f1f3b4c (diff)
downloadPeerTube-a16aee73db627908dc83eb5c29b213ce8d1fab39.tar.gz
PeerTube-a16aee73db627908dc83eb5c29b213ce8d1fab39.tar.zst
PeerTube-a16aee73db627908dc83eb5c29b213ce8d1fab39.zip
Fix embed lint
-rw-r--r--client/src/standalone/videos/embed.ts8
1 files changed, 3 insertions, 5 deletions
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'
6import 'videojs-dock/dist/videojs-dock.es.js' 6import 'videojs-dock/dist/videojs-dock.es.js'
7import { VideoDetails } from '../../../../shared' 7import { VideoDetails } from '../../../../shared'
8 8
9async function loadVideoInfo (videoId: string) { 9async function loadVideoInfo (videoId: string): Promise<VideoDetails> {
10 const response = await fetch(window.location.origin + '/api/v1/videos/' + videoId) 10 const response = await fetch(window.location.origin + '/api/v1/videos/' + videoId)
11 return response.json(); 11 return response.json()
12} 12}
13 13
14const urlParts = window.location.href.split('/') 14const urlParts = window.location.href.split('/')
@@ -42,6 +42,4 @@ loadVideoInfo(videoId)
42 }) 42 })
43 }) 43 })
44 }) 44 })
45 .catch(err => { 45 .catch(err => console.error(err))
46 console.error(err);
47 })