ssb: Don't show 'Loading...' forever in the ssb app when not signed in. Direct to the login page.

This commit is contained in:
2025-01-05 12:52:52 -05:00
parent 61ad405ad8
commit d1b7681efc
3 changed files with 19 additions and 2 deletions

View File

@ -106,6 +106,10 @@ tfrpc.register(async function getActiveIdentity() {
tfrpc.register(async function sync() {
return await ssb.sync();
});
tfrpc.register(async function url() {
return core.url;
});
core.register('onBroadcastsChanged', async function () {
await tfrpc.rpc.set('broadcasts', await ssb.getBroadcasts());
});