fix(settings): save settings fix #19

This commit is contained in:
Alexey Kasyanchuk 2018-03-28 15:41:54 +03:00
parent 7fed355be3
commit eaa7aa7f7c
2 changed files with 18 additions and 14 deletions

View File

@ -7,7 +7,10 @@ module.exports = ({
p2p, p2p,
config, config,
baseRowData, baseRowData,
torrentClient torrentClient,
spider,
upnp,
crypto
}) => { }) => {
let torrentClientHashMap = {} let torrentClientHashMap = {}

View File

@ -293,19 +293,6 @@ if(config.p2pBootstrap)
}); });
} }
// setup api
console.log(API)
API({
sphinx,
recive,
send,
p2p,
config,
baseRowData,
torrentClient
})
let undoneQueries = 0; let undoneQueries = 0;
let pushDatabaseBalance = () => { let pushDatabaseBalance = () => {
undoneQueries++; undoneQueries++;
@ -678,6 +665,20 @@ spider.on('peer', (IPs) => {
IPs.forEach(ip => p2p.add(ip)) IPs.forEach(ip => p2p.add(ip))
}) })
// setup api
API({
sphinx,
recive,
send,
p2p,
config,
baseRowData,
torrentClient,
spider,
upnp,
crypto
})
let fakeTorrents = []; let fakeTorrents = [];
function showFakeTorrentsPage(page) function showFakeTorrentsPage(page)
{ {