mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Use relative requires
This commit is contained in:
@@ -6,7 +6,7 @@ class AtomWindow
|
||||
browserWindow: null
|
||||
|
||||
constructor: ({bootstrapScript, resourcePath, @pathToOpen, exitWhenDone, @isSpec}) ->
|
||||
require('atom-application').addWindow(this)
|
||||
require('./atom-application').addWindow(this)
|
||||
|
||||
@browserWindow = new BrowserWindow show: false, title: 'Atom'
|
||||
@handleEvents()
|
||||
@@ -19,7 +19,7 @@ class AtomWindow
|
||||
|
||||
handleEvents: ->
|
||||
@browserWindow.on 'destroyed', =>
|
||||
require('atom-application').removeWindow(this)
|
||||
require('./atom-application').removeWindow(this)
|
||||
|
||||
if @isSpec
|
||||
# Spec window's web view should always have focus
|
||||
|
||||
Reference in New Issue
Block a user