aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEv Bogue <ev@evbogue.com>2019-04-10 19:20:13 -0500
committerEv Bogue <ev@evbogue.com>2019-04-10 19:20:13 -0500
commit951d2b36fe8bf2cd7c88eb7c22215708bde36c14 (patch)
treeb810a67c621c515909c017bddc5388f187cb205c
parentc1859478b2764df3abe37b36cc65e2587c76f17b (diff)
parse json on key import
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 696de91..1de23f4 100644
--- a/app.js
+++ b/app.js
@@ -109,7 +109,7 @@ function route () {
keyMessage.appendChild(h('button', {
onclick: function () {
if (textarea.value) {
- localforage.setItem('id', textarea.value)
+ localforage.setItem('id', JSON.parse(textarea.value))
location.reload()
}
}