Use real path to WebTorrent.exe
This commit is contained in:
parent
ae935af153
commit
3d1fd56450
1 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
|||
var electron = require('electron')
|
||||
|
||||
var app = electron.app
|
||||
|
||||
module.exports = function () {
|
||||
if (process.platform === 'win32') {
|
||||
registerProtocolHandler('magnet', 'URL:BitTorrent Magnet URL', 'WebTorrent.exe')
|
||||
registerProtocolHandler('magnet', 'URL:BitTorrent Magnet URL', app.getPath('exe'))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue