support IE

This commit is contained in:
Feross Aboukhadijeh 2014-06-03 23:43:05 -07:00
parent a33e454002
commit b55e0c306c
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ module.exports = function (metadata) {
}
}
// For IE support. Since function.name does not work in IE.
ut_metadata.prototype.name = 'ut_metadata'
ut_metadata.prototype.onHandshake = function (infoHash, peerId, extensions) {
this._infoHash = infoHash
}