Atom::beep triggers visual and audio beep

This commit is contained in:
probablycorey
2013-10-22 12:32:06 -07:00
parent 3c08ae2de6
commit 069ae17f9d

View File

@@ -297,18 +297,22 @@ class Atom
process.crash()
beep: ->
@audioBeep()
@visualBeep()
audioBeep: ->
shell.beep()
visualBeep: ->
overlay = $$ -> @div class: 'visual-beep'
$('body').append overlay
setTimeout((-> overlay.remove()), 1000)
requireUserInitScript: ->
userInitScriptPath = path.join(@config.configDirPath, "user.coffee")
try
require userInitScriptPath if fsUtils.isFileSync(userInitScriptPath)
catch error
visualBeep: ->
overlay = $$ -> @div class: 'visual-beep'
$('body').append overlay
setTimeout((-> overlay.remove()), 1000)
console.error "Failed to load `#{userInitScriptPath}`", error.stack, error
requireWithGlobals: (id, globals={}) ->