Browse Source

fix lib/blobs construction

Paul Frazee 5 years ago
parent
commit
ebd4874c6f
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      app/index.js

+ 3
- 5
app/index.js View File

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

Loading…
Cancel
Save