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,15 +9,13 @@ var windows = require('./lib/windows')
//require('crash-reporter').start();
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
require('scuttlebot').init(config, function (err, sbot) {
// register sbot plugins
sbot.use(require('phoenix-api'))
// setup blobs
var blobs = require('./lib/blobs')(sbot, app.getPath('userDesktop'))
// register electron protocols
require('protocol').registerProtocol('blob', blobs.protocol)