Fix wrong binding on atom-environment.coffee

Context: I'm trying to run atom in the browser and have strict mode enabled and it threw on this line. We need it to be a fat arrow otherwise it's adding it to the window (or undefined in strict mode).
This commit is contained in:
Christopher Chedeau
2016-11-03 16:04:17 -07:00
committed by GitHub
parent fede0cf34d
commit 089fa92117

View File

@@ -656,7 +656,7 @@ class AtomEnvironment extends Model
restoreWindowDimensions: ->
unless @windowDimensions? and @isValidDimensions(@windowDimensions)
@windowDimensions = @getDefaultWindowDimensions()
@setWindowDimensions(@windowDimensions).then -> @windowDimensions
@setWindowDimensions(@windowDimensions).then => @windowDimensions
restoreWindowBackground: ->
if backgroundColor = window.localStorage.getItem('atom:window-background-color')