Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit 2e75b93

Browse files
authored
fix closing workerWindow (#26)
1 parent adb5175 commit 2e75b93

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

public/electron.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ function createWorkerWindow() {
6262
? `file://${path.join(__dirname, "worker.html")}`
6363
: `file://${path.join(__dirname, "../build/worker.html")}`
6464
);
65-
workerWindow.on('closed', () => {
66-
console.log('PoW hidden window closed')
67-
});
68-
return workerWindow
65+
workerWindow.on('closed', () => (workerWindow = null));
6966
}
7067

7168
app.on("ready", createWindow);

0 commit comments

Comments
 (0)