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

Commit

Permalink
add appEntry check for renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiewang committed Jul 13, 2018
1 parent 9b0ba1a commit 5d54ecb
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 5d54ecb

Please sign in to comment.