diff options
author | Ev Bogue <ev@evbogue.com> | 2019-04-08 17:12:30 -0500 |
---|---|---|
committer | Ev Bogue <ev@evbogue.com> | 2019-04-08 17:12:30 -0500 |
commit | 4082eaf9abf560c0299780cf50e2583f3185017c (patch) | |
tree | e9e8780277ecec152b299bdb054afbcc76dba06e /lib.js | |
parent | c05445d48c439810820e1c0d5fa5b218ea7dd0c6 (diff) |
add multipub sync
Diffstat (limited to 'lib.js')
-rw-r--r-- | lib.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) { |