use process.execPath instead of app.getPath('exec')
They’re equivalent
This commit is contained in:
parent
3d1fd56450
commit
e70e32c5f8
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue