mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use windowDimensions from load settings if they exist
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user