diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-01-31 11:23:52 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-01-31 11:23:52 +0100 |
commit | c45f7f84001c2731909db04dd82e1c1f290386eb (patch) | |
tree | b7e57420a1f65dfbbacc1a532bf489c9bea6125d /lib/webtorrent.js | |
parent | cda021079ff455cc0fd0eb95a5395fa808ab63d1 (diff) | |
download | PeerTube-c45f7f84001c2731909db04dd82e1c1f290386eb.tar.gz PeerTube-c45f7f84001c2731909db04dd82e1c1f290386eb.tar.zst PeerTube-c45f7f84001c2731909db04dd82e1c1f290386eb.zip |
Infile code reorganization
Diffstat (limited to 'lib/webtorrent.js')
-rw-r--r-- | lib/webtorrent.js | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ | |||
1 | ;(function () { | 1 | ;(function () { |
2 | 'use strict' | 2 | 'use strict' |
3 | 3 | ||
4 | module.exports = function (args) { | 4 | function webtorrent (args) { |
5 | var WebTorrent = require('webtorrent') | 5 | var WebTorrent = require('webtorrent') |
6 | var ipc = require('node-ipc') | 6 | var ipc = require('node-ipc') |
7 | 7 | ||
@@ -88,4 +88,8 @@ | |||
88 | ipc.of[nodeKey].emit(processKey + '.exception', { exception: e }) | 88 | ipc.of[nodeKey].emit(processKey + '.exception', { exception: e }) |
89 | }) | 89 | }) |
90 | } | 90 | } |
91 | |||
92 | // --------------------------------------------------------------------------- | ||
93 | |||
94 | module.exports = webtorrent | ||
91 | })() | 95 | })() |