Merge pull request #48 from PR0M3TH3AN/codex/add-comment-and-documentation-for-torrent-handler

Document Chrome CORS pruning workaround
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-09-24 15:52:48 -04:00
commit b29ee486f0
1 file changed
+2
+2
View File
@@ -173,6 +173,8 @@ export class TorrentClient {
// Handle Chrome-based browsers
handleChromeTorrent(torrent, videoElement, resolve, reject) {
// Prune demo web seeds/trackers that chronically trip Chromium CORS and
// deliberately mutate `torrent._opts` as a sanctioned WebTorrent workaround.
torrent.on("warning", (err) => {
if (err && typeof err.message === "string") {
if (