Windows: register protocol handlers on startup
Just like other OSes. There's no reason for there to be a difference.
This commit is contained in:
@@ -54,7 +54,7 @@ function init () {
|
||||
windows.createMainWindow()
|
||||
shortcuts.init()
|
||||
tray.init()
|
||||
if (process.platform !== 'win32') handlers.init()
|
||||
handlers.init()
|
||||
})
|
||||
|
||||
app.on('ipcReady', function () {
|
||||
|
||||
@@ -11,8 +11,6 @@ var pathExists = require('path-exists')
|
||||
|
||||
var app = electron.app
|
||||
|
||||
var handlers = require('./handlers')
|
||||
|
||||
var exeName = path.basename(process.execPath)
|
||||
var updateDotExe = path.join(process.execPath, '..', '..', 'Update.exe')
|
||||
|
||||
@@ -20,9 +18,7 @@ function handleEvent (cmd) {
|
||||
if (cmd === '--squirrel-install') {
|
||||
// App was installed.
|
||||
|
||||
// Install protocol/file handlers, desktop/start menu shortcuts.
|
||||
handlers.init()
|
||||
|
||||
// Install desktop/start menu shortcuts.
|
||||
createShortcuts(function () {
|
||||
// Ensure user sees install splash screen so they realize that Setup.exe actually
|
||||
// installed an application and isn't the application itself.
|
||||
|
||||
Reference in New Issue
Block a user