From ebd4874c6f6d01cdc7ef044251c7763ce82cd995 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 6 Jul 2015 18:33:59 -0500 Subject: [PATCH] fix lib/blobs construction --- app/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/index.js b/app/index.js index 2a49813..1c16f80 100644 --- a/app/index.js +++ b/app/index.js @@ -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)