aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-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()
}
}