diff --git a/customProtocols.js b/customProtocols.js index b0b9fb2af..05fd52ef0 100644 --- a/customProtocols.js +++ b/customProtocols.js @@ -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) => { @@ -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'); + } });