mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don't assume there is a rootView in window.reload
This was causing an error when specs where reloaded.
This commit is contained in:
@@ -81,7 +81,7 @@ windowAdditions =
|
||||
console.error "Failed to load extension named '#{name}'"
|
||||
|
||||
reload: ->
|
||||
if rootView.getModifiedBuffers().length > 0
|
||||
if rootView?.getModifiedBuffers().length > 0
|
||||
atom.confirm(
|
||||
"There are unsaved buffers, reload anyway?",
|
||||
"You will lose all unsaved changes if you reload",
|
||||
|
||||
Reference in New Issue
Block a user