mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Fall back to empty document if window state cannot be deserialized
If the telepath serialization version has changed it will return null from Site::deserializeDocument.
This commit is contained in:
@@ -231,7 +231,7 @@ window.atom =
|
||||
{site, document} = windowState ? {}
|
||||
if site? and document?
|
||||
window.site = telepath.Site.deserialize(site)
|
||||
window.site.deserializeDocument(document)
|
||||
window.site.deserializeDocument(document) ? window.site.createDocument({})
|
||||
else
|
||||
window.site = new telepath.Site(1)
|
||||
window.site.createDocument({})
|
||||
|
||||
Reference in New Issue
Block a user