intro: The default app is intro, and complete intro changes the default app to ssb.

This commit is contained in:
2025-05-21 18:48:29 -04:00
parent 17694f5646
commit 89622697d5
5 changed files with 50 additions and 51 deletions

View File

@ -1,5 +1,13 @@
import * as tfrpc from '/tfrpc.js';
async function main() {
await app.setDocument(utf8Decode(getFile('index.html')));
}
tfrpc.register(async function complete() {
if ((await core.globalSettingsGet('index')) == '/~core/intro/') {
return await core.globalSettingsSet('index', '/~core/ssb/');
}
});
main();