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

[ESLint] update customProtocols.js #1538

Merged
merged 4 commits into from
Dec 20, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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