]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/webtorrent/webtorrent-plugin.ts
wt-plugin: tighten sanity check
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / webtorrent / webtorrent-plugin.ts
index 287358ada93e5db5cf3f7c233c17791c24fba5e3..9beb04d108bf4a20ca9bc0308e48ae43a49ba92f 100644 (file)
@@ -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.`)
     }