Skip to content

Commit

Permalink
Don't prevent renderer-side reloads
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunsfeld committed Oct 16, 2015
1 parent 30f45d3 commit cd9e24e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/browser/atom-window.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ class AtomWindow
when 0 then @browserWindow.destroy()
when 1 then @browserWindow.restart()

@browserWindow.webContents.on 'will-navigate', (event) -> event.preventDefault()
@browserWindow.webContents.on 'will-navigate', (event, url) =>
unless url is @browserWindow.webContents.getUrl()
event.preventDefault()

@setupContextMenu()

Expand Down

0 comments on commit cd9e24e

Please sign in to comment.