diff options
| author | Ev Bogue <ev@evbogue.com> | 2019-04-10 19:14:47 -0500 | 
|---|---|---|
| committer | Ev Bogue <ev@evbogue.com> | 2019-04-10 19:14:47 -0500 | 
| commit | 8e5dbe95887bf7a2c4cd11ef818342cf7130c462 (patch) | |
| tree | 8c10c50cefbddfb12ee07f75f96879efb23ae548 | |
| parent | a328b91ba5662c742a1ccba77fcf9b2ec8de5a83 (diff) | |
save keys from localStorage oblivion
| -rw-r--r-- | app.js | 10 | 
1 files changed, 10 insertions, 0 deletions
| @@ -117,6 +117,16 @@ function route () {        scroller.appendChild(keyMessage) +      if (localStorage['id']) { + +        var oldKey = h('div', {classlist: 'message'}) + +        oldKey.appendChild(h('You had a key in localStorage. Import it to the new database by pasting it into the box above.')) +        oldKey.appendChild(h('pre', {style: 'width: 80%'}, [h('code', [JSON.stringify(localStorage['id'])])])) + +        scroller.appendChild(oldKey) +      } +        var pubMessage = h('div', {classList: 'message'})        var newPub = h('input', {placeholder: 'Add a new pub. Ex: ws://bogbook.com/'}) | 
