diff --git a/main/register-protocol-handler.js b/main/register-protocol-handler.js index a468e964..22a20c5b 100644 --- a/main/register-protocol-handler.js +++ b/main/register-protocol-handler.js @@ -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) } }