Commit 6d96e74423057b99bdf9a338d03ad257c35032d8
Handle sync message from links
Charles Lehner committed on 5/24/2016, 2:56:09 PMParent: c16a7154c78501f76ae73462a24f69b11382708b
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -97,9 +97,9 @@ | ||
97 | 97 | ) |
98 | 98 | } |
99 | 99 | |
100 | 100 | function onOldMsg(msg) { |
101 | - if (!isUpdateValid(issue, msg)) | |
101 | + if (!msg.value || !isUpdateValid(issue, msg)) | |
102 | 102 | return |
103 | 103 | var c = msg.value.content |
104 | 104 | |
105 | 105 | // handle updates to issue |
@@ -125,9 +125,9 @@ | ||
125 | 125 | checkReady() |
126 | 126 | } |
127 | 127 | |
128 | 128 | function onNewMsg(msg) { |
129 | - if (!isUpdateValid(issue, msg)) | |
129 | + if (!msg.value || !isUpdateValid(issue, msg)) | |
130 | 130 | return |
131 | 131 | var c = msg.value.content |
132 | 132 | |
133 | 133 | // handle updates to issue |
Built with git-ssb-web