aboutsummaryrefslogtreecommitdiff
path: root/lib.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib.js')
-rw-r--r--lib.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib.js b/lib.js
index fef6dc7..659976f 100644
--- a/lib.js
+++ b/lib.js
@@ -65,7 +65,6 @@ function requestFeed (src, server) {
var newLog = diff.concat(oldLog)
localStorage['log'] = JSON.stringify(newLog)
-
location.reload()
}
}
@@ -96,7 +95,12 @@ function publish (content, keys) {
// update the log
updateLog(keys.publicKey, post)
- requestFeed(keys.publicKey, 'ws://bogbook.com/')
+
+ var pubs = JSON.parse(localStorage['pubs'])
+
+ for (i = 0; i < pubs.length; i++) {
+ requestFeed(keys.publicKey, pubs[i])
+ }
var scroller = document.getElementById('scroller')
if (scroller.firstChild) {