From b55e0c306cdf97a5e7156e727fddd4204d36979d Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 3 Jun 2014 23:43:05 -0700 Subject: [PATCH] support IE --- index.js | 3 +++ 1 file changed, 3 insertions(+) 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 }