Run prettier.
This commit is contained in:
.prettierrc.yamlREADME.md
apps
admin.json
admin
api.jsonapi
apps.jsonapps
blog.jsonblog
db
follow.jsonfollow
gg.jsongg
identity.jsonidentity
issues.jsonissues
journal.jsonjournal
sneaker.jsonsneaker
ssb.jsonssb
app.jsemojis.jsindex.htmlscript.jstf-app.jstf-compose.jstf-id-picker.jstf-message.jstf-news.jstf-profile.jstf-styles.jstf-tab-connections.jstf-tab-mentions.jstf-tab-news-feed.jstf-tab-news.jstf-tab-query.jstf-tab-search.jstf-tag.jstf-user.jstf-utils.jstribute.css
todo.jsontodo
welcome.jsonwelcome
wiki.jsonwiki
core
docs
@@ -76,7 +76,7 @@ tfrpc.register(function getHash(id, message) {
|
||||
tfrpc.register(function setHash(hash) {
|
||||
return app.setHash(hash);
|
||||
});
|
||||
ssb.addEventListener('message', async function(id) {
|
||||
ssb.addEventListener('message', async function (id) {
|
||||
await tfrpc.rpc.notifyNewMessage(id);
|
||||
});
|
||||
tfrpc.register(async function store_blob(blob) {
|
||||
@@ -100,18 +100,18 @@ tfrpc.register(async function try_decrypt(id, content) {
|
||||
tfrpc.register(async function encrypt(id, recipients, content) {
|
||||
return await ssb.privateMessageEncrypt(id, recipients, content);
|
||||
});
|
||||
ssb.addEventListener('broadcasts', async function() {
|
||||
ssb.addEventListener('broadcasts', async function () {
|
||||
await tfrpc.rpc.set('broadcasts', await ssb.getBroadcasts());
|
||||
});
|
||||
|
||||
core.register('onConnectionsChanged', async function() {
|
||||
core.register('onConnectionsChanged', async function () {
|
||||
await tfrpc.rpc.set('connections', await ssb.connections());
|
||||
});
|
||||
|
||||
async function main() {
|
||||
if (typeof(database) !== 'undefined') {
|
||||
if (typeof database !== 'undefined') {
|
||||
g_database = await database('ssb');
|
||||
}
|
||||
await app.setDocument(utf8Decode(await getFile('index.html')));
|
||||
}
|
||||
main();
|
||||
main();
|
||||
|
Reference in New Issue
Block a user