ActivityPub-federated video streaming platform using P2P directly in your web browser
Move require outside the function
Chocobozzz821b05aebb06
diff --git a/lib/webtorrentProcess.js b/lib/webtorrentProcess.jsindex 7ba2dd3d9f..7da52523a7 100644--- a/lib/webtorrentProcess.js+++ b/lib/webtorrentProcess.js@@ -1,9 +1,9 @@'use strict'-function webtorrent (args) {- var WebTorrent = require('webtorrent')- var ipc = require('node-ipc')+var WebTorrent = require('webtorrent')+var ipc = require('node-ipc')+function webtorrent (args) {if (args.length !== 3) {throw new Error('Wrong arguments number: ' + args.length + '/3')}