From 7cf26f433f5d93fb5325495bc87bdef87260aada Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Jun 2018 11:25:12 +0200 Subject: Fix e2e tests --- client/src/standalone/videos/embed.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/src/standalone/videos/embed.ts') 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' import { VideoDetails } from '../../../../shared' import { addContextMenu, getVideojsOptions, loadLocale } from '../../assets/player/peertube-player' -import { environment } from '../../environments/environment' function getVideoUrl (id: string) { return window.location.origin + '/api/v1/videos/' + id @@ -62,7 +61,7 @@ const urlParts = window.location.href.split('/') const lastPart = urlParts[urlParts.length - 1] const videoId = lastPart.indexOf('?') === -1 ? lastPart : lastPart.split('?')[0] -loadLocale(environment.apiUrl, videojs, navigator.language) +loadLocale(window.location.origin, videojs, navigator.language) .then(() => loadVideoInfo(videoId)) .then(async response => { const videoContainerId = 'video-container' -- cgit v1.2.3