diff --git a/src/atom-environment.coffee b/src/atom-environment.coffee index ed1271d8f..c6979a90f 100644 --- a/src/atom-environment.coffee +++ b/src/atom-environment.coffee @@ -574,8 +574,8 @@ class AtomEnvironment extends Model return if @inSpecMode() workspaceElement = @views.getView(@workspace) - backgroundColor = window.getComputedStyle(workspaceElement)['background-color'] - window.localStorage.setItem('atom:window-background-color', backgroundColor) + backgroundColor = @window.getComputedStyle(workspaceElement)['background-color'] + @window.localStorage.setItem('atom:window-background-color', backgroundColor) # Call this method when establishing a real application window. startEditorWindow: ->