From c45f7f84001c2731909db04dd82e1c1f290386eb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 31 Jan 2016 11:23:52 +0100 Subject: Infile code reorganization --- lib/webtorrent.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/webtorrent.js') diff --git a/lib/webtorrent.js b/lib/webtorrent.js index b72bc500d..41e60499f 100644 --- a/lib/webtorrent.js +++ b/lib/webtorrent.js @@ -1,7 +1,7 @@ ;(function () { 'use strict' - module.exports = function (args) { + function webtorrent (args) { var WebTorrent = require('webtorrent') var ipc = require('node-ipc') @@ -88,4 +88,8 @@ ipc.of[nodeKey].emit(processKey + '.exception', { exception: e }) }) } + + // --------------------------------------------------------------------------- + + module.exports = webtorrent })() -- cgit v1.2.3