mirror of
https://github.com/atom/atom.git
synced 2026-02-17 10:01:25 -05:00
Display window in initialize-application-window script
This commit is contained in:
@@ -247,8 +247,6 @@ class Atom extends Model
|
||||
#
|
||||
# Call after this instance has been assigned to the `atom` global.
|
||||
initialize: ->
|
||||
@displayWindow() unless @inSpecMode()
|
||||
|
||||
@setBodyPlatformClass()
|
||||
|
||||
{devMode, safeMode, resourcePath} = @getLoadSettings()
|
||||
@@ -762,7 +760,6 @@ class Atom extends Model
|
||||
loadThemes: ->
|
||||
@themes.load()
|
||||
|
||||
|
||||
# Notify the browser project of the window's current project path
|
||||
watchProjectPath: ->
|
||||
@disposables.add @project.onDidChangePaths =>
|
||||
|
||||
@@ -4,7 +4,7 @@ path = require 'path'
|
||||
require './window'
|
||||
getWindowLoadSettings = require './get-window-load-settings'
|
||||
|
||||
{devMode, resourcePath} = getWindowLoadSettings()
|
||||
{resourcePath, isSpec, devMode} = getWindowLoadSettings()
|
||||
|
||||
# Add application-specific exports to module search path.
|
||||
exportsPath = path.join(resourcePath, 'exports')
|
||||
@@ -16,6 +16,8 @@ process.env.NODE_ENV ?= 'production' unless devMode
|
||||
|
||||
Atom = require './atom'
|
||||
window.atom = Atom.loadOrCreate('editor')
|
||||
|
||||
atom.displayWindow() unless isSpec
|
||||
atom.initialize()
|
||||
atom.startEditorWindow()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user