support IE
This commit is contained in:
parent
a33e454002
commit
b55e0c306c
3
index.js
3
index.js
|
@ -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) {
|
ut_metadata.prototype.onHandshake = function (infoHash, peerId, extensions) {
|
||||||
this._infoHash = infoHash
|
this._infoHash = infoHash
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue