Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

wt-plugin: tighten sanity check

kontrollanten77002f52917e
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
index 287358ada9..9beb04d108 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.`)
}