mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Save window parameters on reload
This commit is contained in:
@@ -19,6 +19,9 @@ window.atom =
|
||||
|
||||
setPathToOpen: (pathToOpen) ->
|
||||
window.location.params.pathToOpen = pathToOpen
|
||||
@saveWindowParameters()
|
||||
|
||||
saveWindowParameters: ->
|
||||
hashSegments = []
|
||||
for name, value of window.location.params
|
||||
hashSegments.push("#{encodeURIComponent(name)}=#{encodeURIComponent(value)}")
|
||||
@@ -208,6 +211,7 @@ window.atom =
|
||||
remote.getCurrentWindow().toggleDevTools()
|
||||
|
||||
reload: ->
|
||||
@saveWindowParameters()
|
||||
remote.getCurrentWindow().restart()
|
||||
|
||||
focus: ->
|
||||
|
||||
Reference in New Issue
Block a user