use process.execPath instead of app.getPath('exec')

They’re equivalent
This commit is contained in:
Feross Aboukhadijeh
2016-03-19 19:23:23 -07:00
parent 3d1fd56450
commit e70e32c5f8

View File

@@ -1,10 +1,6 @@
var electron = require('electron')
var app = electron.app
module.exports = function () {
if (process.platform === 'win32') {
registerProtocolHandler('magnet', 'URL:BitTorrent Magnet URL', app.getPath('exe'))
registerProtocolHandler('magnet', 'URL:BitTorrent Magnet URL', process.execPath)
}
}