fix lib/blobs construction

This commit is contained in:
Paul Frazee 2015-07-06 18:33:59 -05:00
parent 4d9510336a
commit ebd4874c6f

View File

@ -9,16 +9,14 @@ var windows = require('./lib/windows')
//require('crash-reporter').start(); //require('crash-reporter').start();
app.on('ready', function ready () { app.on('ready', function ready () {
// setup blobs
var blobs_dir = path.join(config.path, 'blobs')
var downloads_dir = app.getPath('userDesktop')
var blobs = require('./lib/blobs')(blobs_dir, downloads_dir)
// start sbot // start sbot
require('scuttlebot').init(config, function (err, sbot) { require('scuttlebot').init(config, function (err, sbot) {
// register sbot plugins // register sbot plugins
sbot.use(require('phoenix-api')) sbot.use(require('phoenix-api'))
// setup blobs
var blobs = require('./lib/blobs')(sbot, app.getPath('userDesktop'))
// register electron protocols // register electron protocols
require('protocol').registerProtocol('blob', blobs.protocol) require('protocol').registerProtocol('blob', blobs.protocol)