Fix imports in lib/start.ts

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-02-13 12:04:26 +01:00
parent 94d262263c
commit 93d319275f

View File

@ -21,7 +21,9 @@
// if passing `ELECTRON_RUN_AS_NODE`, you have to pass the path to the asar
// or the entry point file (this file) manually as an argument.
if (process.env.ELECTRON_RUN_AS_NODE) {
import { env } from 'process';
if (env.ELECTRON_RUN_AS_NODE) {
import('./gui/modules/child-writer');
} else {
import('./gui/etcher');