mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Correctly initialize AtomWindow
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user