mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Remove call of atom.getCurrentWindow in atom.setWindowDimensions.
This commit is contained in:
@@ -196,7 +196,6 @@ class Atom extends Model
|
||||
# + width: The new width.
|
||||
# + height: The new height.
|
||||
setWindowDimensions: ({x, y, width, height}) ->
|
||||
browserWindow = @getCurrentWindow()
|
||||
if width? and height?
|
||||
ipc.sendChannel('call-window-method', 'setSize', width, height)
|
||||
if x? and y?
|
||||
|
||||
Reference in New Issue
Block a user