mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-18 22:48:41 -09:00
Do not register app for ssh:// url scheme handling on dev mode (#2745)
Fixes #2740
This commit is contained in:
parent
36cde0f23e
commit
4a127ef83b
1 changed files with 11 additions and 9 deletions
|
|
@ -183,6 +183,7 @@ app.on('ready', () =>
|
|||
// expose to plugins
|
||||
app.createWindow = createWindow;
|
||||
|
||||
if (!isDev) {
|
||||
// check if should be set/removed as default ssh protocol client
|
||||
if (config.getConfig().defaultSSHApp && !app.isDefaultProtocolClient('ssh')) {
|
||||
//eslint-disable-next-line no-console
|
||||
|
|
@ -193,6 +194,7 @@ app.on('ready', () =>
|
|||
console.log('Removing Hyper from default client for ssh:// protocl');
|
||||
app.removeAsDefaultProtocolClient('ssh');
|
||||
}
|
||||
}
|
||||
|
||||
// mac only. when the dock icon is clicked
|
||||
// and we don't have any active windows open,
|
||||
|
|
|
|||
Loading…
Reference in a new issue