diff --git a/index.js b/index.js index f6fcb415..bb3d5ab9 100644 --- a/index.js +++ b/index.js @@ -194,6 +194,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) { onseed = opts opts = {} } + opts = opts || {} // TODO: support `input` as string, or array of strings