aboutsummaryrefslogtreecommitdiff
path: root/views.js
diff options
context:
space:
mode:
Diffstat (limited to 'views.js')
-rw-r--r--views.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/views.js b/views.js
index bc77e76..d6a527a 100644
--- a/views.js
+++ b/views.js
@@ -5,12 +5,12 @@ function threadPage (src, keys) {
}
function profilePage (src, keys) {
- var server = 'ws://localhost:8080/'
-
var profile = h('div', {classList: 'profile'})
scroller.appendChild(profile)
+ sync(src, keys)
+
var input = h('input', {placeholder: 'New name'})
profile.appendChild(h('a', {href: '#' + src}, [getName(src)]))
@@ -32,13 +32,16 @@ function profilePage (src, keys) {
profile.appendChild(h('button', {
onclick: function () {
- sync(src, server, keys)
+ sync(src, keys)
}
}, ['Sync feed']))
profile.appendChild(h('button', {
onclick: function () {
- localforage.removeItem(src).then(function () { regenerate() })
+ localforage.removeItem(src).then(function () {
+ location.hash = ''
+ regenerate()
+ })
}
}, ['Delete feed']))