mirror of
https://github.com/atom/atom.git
synced 2026-02-05 12:15:07 -05:00
Move state loading for Atom environment to an instance method
This commit is contained in:
@@ -15,9 +15,10 @@ process.env.NODE_PATH = exportsPath
|
||||
process.env.NODE_ENV ?= 'production' unless devMode
|
||||
|
||||
Atom = require './atom'
|
||||
window.atom = Atom.loadOrCreate('editor')
|
||||
window.atom = new Atom
|
||||
|
||||
atom.displayWindow() unless isSpec
|
||||
atom.displayWindow()
|
||||
atom.loadStateSync()
|
||||
atom.startEditorWindow()
|
||||
|
||||
# Workaround for focus getting cleared upon window creation
|
||||
|
||||
Reference in New Issue
Block a user