Don't store background for spec windows

This commit is contained in:
Kevin Sawicki
2015-05-12 16:50:29 -07:00
parent 104bece119
commit 10c65b53f9

View File

@@ -581,6 +581,8 @@ class Atom extends Model
@state.windowDimensions = dimensions if @isValidDimensions(dimensions)
storeWindowBackground: ->
return if @inSpecMode()
workspaceElement = @views?.getView(@workspace)
backgroundColor = window.getComputedStyle(workspaceElement)['background-color']
window.localStorage.setItem('atom:window-background-color', backgroundColor)