add todo comment

This commit is contained in:
Feross Aboukhadijeh
2016-06-01 19:18:36 -07:00
parent 763c573c7a
commit def2209dc5

View File

@@ -619,6 +619,7 @@ function addTorrent (torrentId) {
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)
}