From bc6ae4523f3d5b31e3cc63579afa7d2f3f9cc74d Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 6 Apr 2016 21:57:11 -0700 Subject: [PATCH] Revert "TEMPORARY: Comment out code that requires Electron 0.37.4" This reverts commit 9c550997c90743a35272ba3cc7cbd94f247c913f. --- main/handlers.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/main/handlers.js b/main/handlers.js index b174609f..50b9a082 100644 --- a/main/handlers.js +++ b/main/handlers.js @@ -30,16 +30,14 @@ function uninstall () { } function installDarwin () { - // TODO: Uncomment this once we upgrade past Electron 0.37.4. + var electron = require('electron') + var app = electron.app - // var electron = require('electron') - // var app = electron.app + // On OS X, only protocols that are listed in Info.plist can be set as the default + // handler at runtime. + app.setAsDefaultProtocolClient('magnet') - // // On OS X, only protocols that are listed in Info.plist can be set as the default - // // handler at runtime. - // app.setAsDefaultProtocolClient('magnet') - - // // File handlers are registered in the Info.plist. + // File handlers are registered in the Info.plist. } function uninstallDarwin () {}