Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
Fix error in Chrome extension environment
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Jul 23, 2019
1 parent 78d98d9 commit 57d3139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const http = require('http')
const mime = require('mime')
const pump = require('pump')
const rangeParser = require('range-parser')
const URL = require('url').URL
const URL = require('url').URL || window.URL // TODO: remove when we drop Node 8 support

function Server (torrent, opts = {}) {
const server = http.createServer()
Expand Down

0 comments on commit 57d3139

Please sign in to comment.