diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-08 11:25:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-08 11:25:12 +0200 |
commit | 7cf26f433f5d93fb5325495bc87bdef87260aada (patch) | |
tree | 675e45abf0d63f20e3b6da9293ed5a32e0d1b1a4 /client/src/standalone/videos/embed.ts | |
parent | dbe868c07080135cf62ecb8ad556d471c1e6c2ca (diff) | |
download | PeerTube-7cf26f433f5d93fb5325495bc87bdef87260aada.tar.gz PeerTube-7cf26f433f5d93fb5325495bc87bdef87260aada.tar.zst PeerTube-7cf26f433f5d93fb5325495bc87bdef87260aada.zip |
Fix e2e tests
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 4f6fae8aa..e28d964de 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -21,7 +21,6 @@ import * as videojs from 'video.js' | |||
21 | 21 | ||
22 | import { VideoDetails } from '../../../../shared' | 22 | import { VideoDetails } from '../../../../shared' |
23 | import { addContextMenu, getVideojsOptions, loadLocale } from '../../assets/player/peertube-player' | 23 | import { addContextMenu, getVideojsOptions, loadLocale } from '../../assets/player/peertube-player' |
24 | import { environment } from '../../environments/environment' | ||
25 | 24 | ||
26 | function getVideoUrl (id: string) { | 25 | function getVideoUrl (id: string) { |
27 | return window.location.origin + '/api/v1/videos/' + id | 26 | return window.location.origin + '/api/v1/videos/' + id |
@@ -62,7 +61,7 @@ const urlParts = window.location.href.split('/') | |||
62 | const lastPart = urlParts[urlParts.length - 1] | 61 | const lastPart = urlParts[urlParts.length - 1] |
63 | const videoId = lastPart.indexOf('?') === -1 ? lastPart : lastPart.split('?')[0] | 62 | const videoId = lastPart.indexOf('?') === -1 ? lastPart : lastPart.split('?')[0] |
64 | 63 | ||
65 | loadLocale(environment.apiUrl, videojs, navigator.language) | 64 | loadLocale(window.location.origin, videojs, navigator.language) |
66 | .then(() => loadVideoInfo(videoId)) | 65 | .then(() => loadVideoInfo(videoId)) |
67 | .then(async response => { | 66 | .then(async response => { |
68 | const videoContainerId = 'video-container' | 67 | const videoContainerId = 'video-container' |