use process.execPath instead of app.getPath('exec')
They’re equivalent
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user