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

Commit

Permalink
[ESLint] update customProtocols.js (#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
luclu authored and frozeman committed Dec 20, 2016
1 parent 59b918f commit 5e6dc73
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions customProtocols.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const electron = require('electron');
const protocol = electron.protocol;
const path = require('path');
const { protocol } = require('electron');


protocol.registerHttpProtocol('mist', (request, callback) => {
Expand All @@ -19,8 +17,9 @@ protocol.registerHttpProtocol('mist', (request, callback) => {

callback(call);
}, (error) => {
if (error)
{ console.error('Failed to register protocol'); }
if (error) {
console.error('Failed to register protocol');
}
});


Expand Down

0 comments on commit 5e6dc73

Please sign in to comment.