diff --git a/index.js b/index.js index 023e99e..5d25fea 100644 --- a/index.js +++ b/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) { this._infoHash = infoHash }