mirror of
https://github.com/atom/atom.git
synced 2026-02-15 00:55:14 -05:00
9 lines
298 B
CoffeeScript
9 lines
298 B
CoffeeScript
windowLoadSettings = null
|
|
|
|
exports.getWindowLoadSettings = ->
|
|
windowLoadSettings ?= JSON.parse(window.decodeURIComponent(window.location.hash.substr(1)))
|
|
|
|
exports.setWindowLoadSettings = (settings) ->
|
|
windowLoadSettings = settings
|
|
location.hash = encodeURIComponent(JSON.stringify(settings))
|