Assume that if callback exists it is a function

This commit is contained in:
Wliu
2017-11-17 23:44:09 +01:00
parent 1401c58e8e
commit efdba69b99

View File

@@ -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'