Do not register app for ssh:// url scheme handling on dev mode (#2745)

Fixes #2740
This commit is contained in:
Ajo John 2018-03-08 20:15:49 +05:30 committed by CHaBou
parent 36cde0f23e
commit 4a127ef83b

View file

@ -183,6 +183,7 @@ app.on('ready', () =>
// expose to plugins // expose to plugins
app.createWindow = createWindow; app.createWindow = createWindow;
if (!isDev) {
// check if should be set/removed as default ssh protocol client // check if should be set/removed as default ssh protocol client
if (config.getConfig().defaultSSHApp && !app.isDefaultProtocolClient('ssh')) { if (config.getConfig().defaultSSHApp && !app.isDefaultProtocolClient('ssh')) {
//eslint-disable-next-line no-console //eslint-disable-next-line no-console
@ -193,6 +194,7 @@ app.on('ready', () =>
console.log('Removing Hyper from default client for ssh:// protocl'); console.log('Removing Hyper from default client for ssh:// protocl');
app.removeAsDefaultProtocolClient('ssh'); app.removeAsDefaultProtocolClient('ssh');
} }
}
// mac only. when the dock icon is clicked // mac only. when the dock icon is clicked
// and we don't have any active windows open, // and we don't have any active windows open,