Bring back buttons to attach apps.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4014 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-10-18 23:00:57 +00:00
parent 60d1ea9d39
commit 54ebd0e643
3 changed files with 60 additions and 1 deletions

View File

@@ -61,6 +61,12 @@ tfrpc.register(async function store_blob(blob) {
}
return await ssb.blobStore(blob);
});
tfrpc.register(async function get_blob(id) {
return utf8Decode(await ssb.blobGet(id));
});
tfrpc.register(function apps() {
return core.apps();
});
ssb.addEventListener('broadcasts', async function() {
await tfrpc.rpc.set('broadcasts', await ssb.getBroadcasts());
});