Revert "TEMPORARY: Comment out code that requires Electron 0.37.4"

This reverts commit 9c550997c9.
This commit is contained in:
Feross Aboukhadijeh
2016-04-06 21:57:11 -07:00
parent 442ac9184f
commit bc6ae4523f

View File

@@ -30,16 +30,14 @@ function uninstall () {
} }
function installDarwin () { 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') // On OS X, only protocols that are listed in Info.plist can be set as the default
// var app = electron.app // handler at runtime.
app.setAsDefaultProtocolClient('magnet')
// // On OS X, only protocols that are listed in Info.plist can be set as the default // File handlers are registered in the Info.plist.
// // handler at runtime.
// app.setAsDefaultProtocolClient('magnet')
// // File handlers are registered in the Info.plist.
} }
function uninstallDarwin () {} function uninstallDarwin () {}