]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix player
authorChocobozzz <me@florianbigard.com>
Tue, 25 Oct 2022 08:22:33 +0000 (10:22 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 25 Oct 2022 08:22:33 +0000 (10:22 +0200)
client/src/app/+videos/+video-watch/video-watch.component.ts

index b3818c8dee541261d22f7922f6547193fb72fd7b..983a27e110b342ea62c1d0bb5f76b7dbe9ceafbf 100644 (file)
@@ -657,7 +657,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
           : null,
         authorizationHeader: () => this.authService.getRequestHeaderValue(),
 
-        serverUrl: environment.originServerUrl,
+        serverUrl: environment.originServerUrl || window.location.origin,
 
         videoFileToken: () => videoFileToken,
         requiresAuth: videoRequiresAuth(video),