diff options
-rw-r--r-- | index.js | 2 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -92,7 +92,7 @@ class WebTorrent extends EventEmitter { if (this.tracker) { if (typeof this.tracker !== 'object') this.tracker = {} - if (global.WRTC && !this.tracker.wrtc) this.tracker.wrtc = global.WRTC + if (globalThis.WRTC && !this.tracker.wrtc) this.tracker.wrtc = globalThis.WRTC } if (typeof ConnPool === 'function') { diff --git a/package.json b/package.json index d20817a..ec3ae54 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "chrome-net": "^3.3.4", "chunk-store-stream": "^4.3.0", "cpus": "^1.0.3", - "create-torrent": "^4.7.2", + "create-torrent": "^5.0.0", "debug": "^4.3.2", "end-of-stream": "^1.4.4", "escape-html": "^1.0.3", |