🐛 Fix #4300 by preventing 'will-navigate'

This commit is contained in:
Thomas Johansen
2015-10-10 01:21:49 +02:00
parent d35160af1c
commit af36a23e95

View File

@@ -142,6 +142,8 @@ class AtomWindow
when 0 then @browserWindow.destroy()
when 1 then @browserWindow.restart()
@browserWindow.webContents.on 'will-navigate', (event) -> event.preventDefault()
@setupContextMenu()
if @isSpec