Fixed lint error

pull/3958/head
Poslovitch 2021-04-24 14:01:36 +00:00 committed by Chocobozzz
parent dfdcbb948a
commit 5bb2ed6b81
1 changed files with 4 additions and 2 deletions

View File

@ -848,8 +848,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
}
// Only set this if we're in a playlist
if (this.playlist) options.common.previousVideo = () => {
this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo())
if (this.playlist) {
options.common.previousVideo = () => {
this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo())
}
}
let mode: PlayerMode