Files: 38dcebb3094e403684ce1dd8cd3d5fc5f8ef1410 / index.js
511 bytesRaw
1 | var confirmer = require('./confirm') |
2 | |
3 | exports.name = 'publishguard' |
4 | exports.version = '1.0.0' |
5 | exports.manifest = { |
6 | } |
7 | exports.init = function (sbot, config) { |
8 | setTimeout(function () { |
9 | var confirm = confirmer({ |
10 | publish: sbot.publish, |
11 | privatePublish: sbot.private && sbot.private.publish, |
12 | config: config.publishguard |
13 | }) |
14 | sbot.publish = confirm.publish |
15 | if (sbot.private) sbot.private.publish = confirm.privatePublish |
16 | console.log('[' + exports.name + '] enabled') |
17 | }, 1000) |
18 | } |
19 |
Built with git-ssb-web