Commit 80053725d6e9728e8a7002217581df77265f422d
Catch error on publish
Charles Lehner committed on 7/24/2016, 2:27:46 PMParent: bf5b79d17d7fcf89a7cb0ad35bff87d0c66f184a
Files changed
modules/message-confirm.js | changed |
modules/message-confirm.js | ||
---|---|---|
@@ -15,9 +15,10 @@ | ||
15 | 15 | var lb = lightbox() |
16 | 16 | document.body.appendChild(lb) |
17 | 17 | |
18 | 18 | var okay = h('button', 'okay', {onclick: function () { |
19 | - publish(content); lb.remove(); cb(null, content) | |
19 | + lb.remove() | |
20 | + publish(content, cb) | |
20 | 21 | }}) |
21 | 22 | |
22 | 23 | var cancel = h('button', 'cancel', {onclick: function () { |
23 | 24 | lb.remove() |
Built with git-ssb-web