Commit 38dcebb3094e403684ce1dd8cd3d5fc5f8ef1410
Increase robustness
cel committed on 11/27/2018, 9:08:03 AMParent: f51503cfd1faede85cf456ab7577b349e270c959
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -7,12 +7,12 @@ | ||
7 | 7 … | exports.init = function (sbot, config) { |
8 | 8 … | setTimeout(function () { |
9 | 9 … | var confirm = confirmer({ |
10 | 10 … | publish: sbot.publish, |
11 | - privatePublish: sbot.private.publish, | |
11 … | + privatePublish: sbot.private && sbot.private.publish, | |
12 | 12 … | config: config.publishguard |
13 | 13 … | }) |
14 | 14 … | sbot.publish = confirm.publish |
15 | - sbot.private.publish = confirm.privatePublish | |
15 … | + if (sbot.private) sbot.private.publish = confirm.privatePublish | |
16 | 16 … | console.log('[' + exports.name + '] enabled') |
17 | 17 … | }, 1000) |
18 | 18 … | } |
Built with git-ssb-web