Use windowDimensions from load settings if they exist

This commit is contained in:
probablycorey
2014-04-08 16:57:52 -07:00
parent 6fcd905d4f
commit 3393583b72

View File

@@ -228,6 +228,9 @@ class Atom extends Model
localStorage.setItem("defaultWindowDimensions", dimensions)
getDefaultWindowDimensions: ->
{windowDimensions} = @getLoadSettings()
return windowDimensions if windowDimensions?
try
JSON.parse(localStorage.getItem("defaultWindowDimensions"))
catch error