mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
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:
committed by
GitHub
parent
fede0cf34d
commit
089fa92117
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user