mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
project pane works. I call it Tree now though. Probably too generic, whatevs"
This commit is contained in:
@@ -2,12 +2,12 @@ module.exports =
|
||||
class Storage
|
||||
@get: (key, defaultValue) ->
|
||||
try
|
||||
object = JSON.parse(localStorage[key] ? "{}")
|
||||
value = JSON.parse(localStorage[key] ? null) ? defaultValue
|
||||
catch error
|
||||
error.message += "\nGetting #{key}"
|
||||
console.error(error)
|
||||
|
||||
object ? defaultValue
|
||||
value
|
||||
|
||||
@set: (key, value) ->
|
||||
if value == undefined
|
||||
|
||||
Reference in New Issue
Block a user