aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/app.js b/app.js
index 2b2f05b..f2e0765 100644
--- a/app.js
+++ b/app.js
@@ -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/'})