mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
Assume that if callback exists it is a function
This commit is contained in:
@@ -131,7 +131,7 @@ class ApplicationDelegate
|
||||
remote.systemPreferences.getUserDefault(key, type)
|
||||
|
||||
confirm: ({message, detailedMessage, buttons}, callback) ->
|
||||
if typeof callback is 'function'
|
||||
if callback?
|
||||
# Async version: buttons is required to be an array
|
||||
remote.dialog.showMessageBox(remote.getCurrentWindow(), {
|
||||
type: 'info'
|
||||
|
||||
Reference in New Issue
Block a user