Browse Source

switch blob protocol to pwblob:

Paul Frazee 5 years ago
parent
commit
2cb3b10e4d
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/index.js
  2. 1
    1
      app/lib/blobs.js

+ 1
- 1
app/index.js View File

@@ -30,7 +30,7 @@ app.on('ready', function () {
30 30
 
31 31
   // setup blob and file serving
32 32
   var blobs = require('./lib/blobs')(sbot, { blobs_dir: path.join(config.path, 'blobs'), checkout_dir: app.getPath('userDesktop') })
33
-  require('protocol').registerProtocol('blob', blobs.protocol)
33
+  require('protocol').registerProtocol('pwblob', blobs.protocol)
34 34
   http.createServer(blobs.server({ serveFiles: false })).listen(7777)
35 35
   http.createServer(blobs.server({ serveFiles: true })).listen(7778)
36 36
 

+ 1
- 1
app/lib/blobs.js View File

@@ -159,7 +159,7 @@ module.exports = function (sbot, config) {
159 159
 }
160 160
 
161 161
 // blob url parser
162
-var re = /^blob:&([a-z0-9\+\/=]+\.(?:sha256|blake2s))\??(.*)$/i
162
+var re = /^pwblob:&([a-z0-9\+\/=]+\.(?:sha256|blake2s))\??(.*)$/i
163 163
 var url_parse =
164 164
 module.exports.url_parse = function (str) {
165 165
   var parts = re.exec(str)

Loading…
Cancel
Save