aboutsummaryrefslogtreecommitdiff
path: root/views.js
diff options
context:
space:
mode:
authorEv Bogue <ev@evbogue.com>2019-04-25 21:16:17 -0500
committerEv Bogue <ev@evbogue.com>2019-04-25 21:16:17 -0500
commitbd14700d559f08e1585cf6ae40b6f78c9cd295eb (patch)
tree0832194cbe8a8eb43be0ce5750f0d254a6896021 /views.js
parent48dbaa05211d817b63a0acbcf425b7c15400a259 (diff)
this isnt quite working yet, but commiting anyway
Diffstat (limited to 'views.js')
-rw-r--r--views.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/views.js b/views.js
index 94fcb5d..1c4dca3 100644
--- a/views.js
+++ b/views.js
@@ -7,12 +7,18 @@ function threadPage (src, keys) {
}
function profilePage (src, keys) {
+ var server = 'ws://localhost:8080/'
+
+ sync(src, server, keys)
+
bog(src).then(log => {
- log.forEach(function (msg) {
- open(msg).then(post => {
- scroller.appendChild(render(post, keys))
+ if (log) {
+ log.forEach(function (msg) {
+ open(msg).then(post => {
+ scroller.appendChild(render(post, keys))
+ })
})
- })
+ }
})
}