diff options
Diffstat (limited to 'views.js')
-rw-r--r-- | views.js | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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'])) |