diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts index 287358ada..9beb04d10 100644 --- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts @@ -139,7 +139,7 @@ class WebTorrentPlugin extends Plugin { : this.pickAverageVideoFile() } - if (videoFile === undefined) { + if (!!videoFile) { throw Error(`Can't update video file since videoFile is undefined.`) }