Skip to content

Commit

Permalink
roll back to disallow close on cmd-w
Browse files Browse the repository at this point in the history
  • Loading branch information
will-stone committed May 16, 2019
1 parent 4c0b91c commit e4e0531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "browserosaurus",
"productName": "Browserosaurus",
"version": "5.4.2",
"version": "5.4.3",
"engines": {
"node": ">=10.4.1"
},
Expand Down
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ const createPickerWindow = () =>

pickerWindow.loadURL(`file://${__dirname}/picker/index.html`)

// pickerWindow.on('close', e => {
// e.preventDefault()
// pickerWindow.webContents.send(WINDOW_BLUR)
// })
pickerWindow.on('close', e => {
e.preventDefault()
pickerWindow.webContents.send(WINDOW_BLUR)
})

pickerWindow.on('blur', () => {
pickerWindow.webContents.send(WINDOW_BLUR)
Expand Down

0 comments on commit e4e0531

Please sign in to comment.