diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index 025c62430..5530dc8ad 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -848,8 +848,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
848 | } | 848 | } |
849 | 849 | ||
850 | // Only set this if we're in a playlist | 850 | // Only set this if we're in a playlist |
851 | if (this.playlist) options.common.previousVideo = () => { | 851 | if (this.playlist) { |
852 | this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo()) | 852 | options.common.previousVideo = () => { |
853 | this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo()) | ||
854 | } | ||
853 | } | 855 | } |
854 | 856 | ||
855 | let mode: PlayerMode | 857 | let mode: PlayerMode |