mirror of
https://github.com/atom/atom.git
synced 2026-02-12 07:35:14 -05:00
Rename “bootstrap” scripts
They’re just window initialization scripts, and this new naming makes that a lot clearer.
This commit is contained in:
13
src/initialize-application-window.coffee
Normal file
13
src/initialize-application-window.coffee
Normal file
@@ -0,0 +1,13 @@
|
||||
# Like sands through the hourglass, so are the days of our lives.
|
||||
require './window'
|
||||
|
||||
Atom = require './atom'
|
||||
window.atom = Atom.loadOrCreate('editor')
|
||||
atom.initialize()
|
||||
atom.startEditorWindow()
|
||||
|
||||
# Workaround for focus getting cleared upon window creation
|
||||
windowFocused = ->
|
||||
window.removeEventListener('focus', windowFocused)
|
||||
setTimeout (-> document.querySelector('atom-workspace').focus()), 0
|
||||
window.addEventListener('focus', windowFocused)
|
||||
Reference in New Issue
Block a user