Skip to content
This repository was archived by the owner on Aug 6, 2021. It is now read-only.

Commit e470aca

Browse files
authored
Merge pull request #543 from firstred/electronreload
fix: set the electron path to fix electron-reload
2 parents 7db4744 + d835bdd commit e470aca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/background.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ log.transports.file.file = `${userDataPath}${path.sep}bunqDesktop.${env.name}.lo
8888

8989
// hot reloading
9090
if (process.env.NODE_ENV === "development") {
91-
require("electron-reload")(path.join(__dirname, `..${path.sep}app${path.sep}**`));
91+
require("electron-reload")(path.join(__dirname, `..${path.sep}app${path.sep}**`), {
92+
electron: path.join(__dirname, "../node_modules/electron"),
93+
});
9294
}
9395

9496
// set the correct path before the app loads

0 commit comments

Comments
 (0)