Skip to content

Commit

Permalink
dev: get electron-reload back to work (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
csett86 authored Jan 22, 2024
1 parent 52e273e commit 82bce29
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/electron-reload+1.5.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/electron-reload/main.js b/node_modules/electron-reload/main.js
index 688934d..860e071 100644
--- a/node_modules/electron-reload/main.js
+++ b/node_modules/electron-reload/main.js
@@ -9,7 +9,7 @@ const ignoredPaths = /node_modules|[/\\]\./
// only effective when the process is restarted (hard reset)
// We assume that electron-reload is required by the main
// file of the electron application
-const mainFile = module.parent.filename
+const mainFile = 'build/main.js'

/**
* Creates a callback for hard resets.

0 comments on commit 82bce29

Please sign in to comment.