fix reload

This commit is contained in:
Sean Yesmunt 2019-01-02 20:25:33 -05:00
parent bf2022b099
commit 1731530253

View file

@ -6,13 +6,9 @@ const createWindow = require("./create-window");
const Daemon = require("./daemon");
const IS_DEV = process.env.NODE_ENV === "development";
console.log("starting?");
// Auto-reload when we make changes
if (IS_DEV) {
require("electron-reload")(__dirname, {
electron: path.join(__dirname, "node_modules", ".bin", "electron")
});
require("electron-reload")(__dirname);
}
// This method will be called when Electron has finished