mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
14 lines
446 B
CoffeeScript
14 lines
446 B
CoffeeScript
# 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)
|