Use real path to WebTorrent.exe

This commit is contained in:
Feross Aboukhadijeh
2016-03-19 19:10:22 -07:00
parent ae935af153
commit 3d1fd56450

View File

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