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