aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2020-12-07 14:19:44 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-12-07 16:52:35 +0100
commit77002f52917ec3078e0cc2071c07e759d8bb769d (patch)
tree8a55393a976f928219c24bae2456ccb46495c0cb /client/src/assets/player
parenta325db1776b956df8eb89fd7459dfcc97c89bb0e (diff)
downloadPeerTube-77002f52917ec3078e0cc2071c07e759d8bb769d.tar.gz
PeerTube-77002f52917ec3078e0cc2071c07e759d8bb769d.tar.zst
PeerTube-77002f52917ec3078e0cc2071c07e759d8bb769d.zip
wt-plugin: tighten sanity check
Diffstat (limited to 'client/src/assets/player')
-rw-r--r--client/src/assets/player/webtorrent/webtorrent-plugin.ts2
1 files changed, 1 insertions, 1 deletions
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 {
139 : this.pickAverageVideoFile() 139 : this.pickAverageVideoFile()
140 } 140 }
141 141
142 if (videoFile === undefined) { 142 if (!!videoFile) {
143 throw Error(`Can't update video file since videoFile is undefined.`) 143 throw Error(`Can't update video file since videoFile is undefined.`)
144 } 144 }
145 145