Fix app.getPath API

This commit is contained in:
Feross Aboukhadijeh
2016-04-10 23:10:42 -07:00
parent f6b9dbbbc4
commit b10f8c5bed

View File

@@ -1,6 +1,6 @@
var electron = require('electron')
var app = electron.app
var remote = electron.remote
var config = require('../config')
var LocationHistory = require('./lib/location-history')
@@ -197,6 +197,6 @@ function getDefaultSavedState () {
]
}
],
downloadPath: app.getPath('downloads')
downloadPath: remote.app.getPath('downloads')
}
}