Correctly initialize AtomWindow

This commit is contained in:
Michelle Tilley 2017-09-18 19:01:41 -07:00
parent b4f73f254d
commit f66e4c21d8
No known key found for this signature in database
GPG Key ID: CD86C13E51F378DA

View File

@ -669,7 +669,7 @@ class AtomApplication
@lastFocusedWindow.sendUrlMessage url
else
windowDimensions = @getDimensionsForNewWindow()
@lastFocusedWindow = new AtomWindow({resourcePath, windowInitializationScript, devMode, safeMode, windowDimensions, env})
@lastFocusedWindow = new AtomWindow(this, @fileRecoveryService, {resourcePath, windowInitializationScript, devMode, safeMode, windowDimensions, env})
@lastFocusedWindow.on 'window:loaded', =>
@lastFocusedWindow.sendUrlMessage url