Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4d414b

Browse files
committed
fix(electron): do not prevent window close event
1 parent a0ccc16 commit d4d414b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ const showMainWindow = async () => {
160160

161161
// Save window size and position
162162
mainWindow.on('close', (event) => {
163-
event.preventDefault();
164-
165163
const bounds = mainWindow.getBounds();
166164
const display = screen.getDisplayMatching(bounds);
167165
const options = {

0 commit comments

Comments
 (0)