From 563e1ca0bac3fd202e17a753f5723fab37e8c6c8 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 11 Aug 2016 00:20:07 -0700 Subject: [PATCH] Support for instant.io links does not belong in webtorrent core --- src/renderer/controllers/torrent-list-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/controllers/torrent-list-controller.js b/src/renderer/controllers/torrent-list-controller.js index c259184d..802ad8b9 100644 --- a/src/renderer/controllers/torrent-list-controller.js +++ b/src/renderer/controllers/torrent-list-controller.js @@ -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) }