Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #802 from NebulousLabs/hotfix/path-fix-2
Browse files Browse the repository at this point in the history
add appEntry check for renderer
  • Loading branch information
lukechampine authored Jul 13, 2018
2 parents 9b0ba1a + 5d54ecb commit b1a25ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/rendererjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import {

const App = remote.app
const mainWindow = remote.getCurrentWindow()
const defaultPluginDirectory = Path.join(process.cwd(), 'plugins')
const appEntry = process.env.NODE_ENV === 'development'
? process.cwd()
: App.getAppPath()
const defaultPluginDirectory = Path.join(appEntry, 'plugins')
const defaultHomePlugin = 'Files'
const config = remote.getGlobal('config')
const globalPlugins = []
Expand Down

0 comments on commit b1a25ab

Please sign in to comment.