Support for instant.io links does not belong in webtorrent core
This commit is contained in:
parent
0fa3b678b0
commit
563e1ca0ba
1 changed files with 1 additions and 1 deletions
|
|
@ -24,8 +24,8 @@ module.exports = class TorrentListController {
|
|||
// Use path string instead of W3C File object
|
||||
torrentId = torrentId.path
|
||||
}
|
||||
|
||||
// Allow a instant.io link to be pasted
|
||||
// TODO: remove this once support is added to webtorrent core
|
||||
if (typeof torrentId === 'string' && instantIoRegex.test(torrentId)) {
|
||||
torrentId = torrentId.slice(torrentId.indexOf('#') + 1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue