From 616af83706ef97337f577d74724b3b4be37bc48a Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 25 Jun 2015 11:16:23 -0500 Subject: [PATCH] switch ext: proto to blob: --- app/index.html | 3 +++ app/index.js | 4 ++-- app/lib/{ext-protocol.js => blob-protocol.js} | 0 3 files changed, 5 insertions(+), 2 deletions(-) rename app/lib/{ext-protocol.js => blob-protocol.js} (100%) diff --git a/app/index.html b/app/index.html index 36d15ca..277b271 100644 --- a/app/index.html +++ b/app/index.html @@ -22,5 +22,8 @@ + diff --git a/app/index.js b/app/index.js index 3fcb0ba..1f1f50c 100644 --- a/app/index.js +++ b/app/index.js @@ -20,7 +20,7 @@ app.on('ready', function ready () { // start sbot require('scuttlebot').init(config, function (err, sbot) { // register protocols - require('protocol').registerProtocol('ext', require('./lib/ext-protocol')(config)) + require('protocol').registerProtocol('blob', require('./lib/blob-protocol')(config)) // open the web app mainWindow = new BrowserWindow({width: 1000, height: 720}) @@ -30,7 +30,7 @@ app.on('ready', function ready () { function onNewWindow (e, url) { e.preventDefault() // hell naw - if (url.indexOf('ext:') === 0) { + if (url.indexOf('blob:') === 0) { // open the file var id = url.split(':')[1] shell.openItem(toPath(blobs_dir, id)) diff --git a/app/lib/ext-protocol.js b/app/lib/blob-protocol.js similarity index 100% rename from app/lib/ext-protocol.js rename to app/lib/blob-protocol.js