Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Commit 7ac7ec3

Browse files
marlomajorevertonfraga
authored andcommitted
cleanup customProtocols.js (#4131)
1 parent ba324fc commit 7ac7ec3

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

customProtocols.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ const { protocol } = require('electron');
33
protocol.registerHttpProtocol(
44
'mist',
55
(request, callback) => {
6-
// callback({mimeType: 'text/html', data: Buffer.from('<h5>Response</h5>')});
7-
86
console.log(
97
request.url.indexOf('mist://interface') !== -1
108
? global.interfaceAppUrl + request.url.replace('mist://interface', '')
@@ -15,14 +13,11 @@ protocol.registerHttpProtocol(
1513
url:
1614
request.url.indexOf('mist://interface') !== -1
1715
? global.interfaceAppUrl + request.url.replace('mist://interface', '')
18-
: '', // 'http://localhost:3050/' + request.url.replace('mist://',''),
16+
: '',
1917
method: request.method,
2018
referrer: request.referrer
2119
};
2220

23-
console.log(call);
24-
// console.log(call);
25-
2621
callback(call);
2722
},
2823
error => {
@@ -31,15 +26,3 @@ protocol.registerHttpProtocol(
3126
}
3227
}
3328
);
34-
35-
// protocol.registerProtocol('eth', function(request) {
36-
// var url = request.url.substr(7)
37-
// return new protocol.RequestStringJob({data: 'Hello'});
38-
// });
39-
40-
// protocol.registerProtocol('bzz', function(request) {
41-
// var url = request.url.substr(7)
42-
// return new protocol.RequestStringJob({data: 'Hello'});
43-
// });
44-
45-
// protocol.registerStandardSchemes(['mist','eth', 'bzz']); //'eth', 'bzz'

0 commit comments

Comments
 (0)