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()
|
windows.createMainWindow()
|
||||||
shortcuts.init()
|
shortcuts.init()
|
||||||
tray.init()
|
tray.init()
|
||||||
if (process.platform !== 'win32') handlers.init()
|
handlers.init()
|
||||||
})
|
})
|
||||||
|
|
||||||
app.on('ipcReady', function () {
|
app.on('ipcReady', function () {
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ var pathExists = require('path-exists')
|
|||||||
|
|
||||||
var app = electron.app
|
var app = electron.app
|
||||||
|
|
||||||
var handlers = require('./handlers')
|
|
||||||
|
|
||||||
var exeName = path.basename(process.execPath)
|
var exeName = path.basename(process.execPath)
|
||||||
var updateDotExe = path.join(process.execPath, '..', '..', 'Update.exe')
|
var updateDotExe = path.join(process.execPath, '..', '..', 'Update.exe')
|
||||||
|
|
||||||
@@ -20,9 +18,7 @@ function handleEvent (cmd) {
|
|||||||
if (cmd === '--squirrel-install') {
|
if (cmd === '--squirrel-install') {
|
||||||
// App was installed.
|
// App was installed.
|
||||||
|
|
||||||
// Install protocol/file handlers, desktop/start menu shortcuts.
|
// Install desktop/start menu shortcuts.
|
||||||
handlers.init()
|
|
||||||
|
|
||||||
createShortcuts(function () {
|
createShortcuts(function () {
|
||||||
// Ensure user sees install splash screen so they realize that Setup.exe actually
|
// Ensure user sees install splash screen so they realize that Setup.exe actually
|
||||||
// installed an application and isn't the application itself.
|
// installed an application and isn't the application itself.
|
||||||
|
|||||||
Reference in New Issue
Block a user