Skip to content

Check env for app.html entry

Eddie Wang requested to merge hotfix/path-fix into master

This fixes the white-screen problem on the latest RC build. I enabled a debug tool and noticed that electron was trying to load file://app.html. This is because it's using process.cwd() which is necessary in dev mode, but breaks in prod mode.

I added a flag to check the node env, and then use app.getAppPath() instead of process.cwd() for production builds.

Merge request reports