Files
tildefriends/apps/intro/app.js
Cory McWilliams a15b916b06
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 32m33s
ssb: Only print broadcast failures once.
2025-06-16 22:26:23 -04:00

17 lines
374 B
JavaScript

import * as tfrpc from '/tfrpc.js';
async function main() {
await app.setDocument(utf8Decode(getFile('index.html')));
}
tfrpc.register(async function complete() {
if (
core.user?.credentials?.permissions?.administration &&
(await core.globalSettingsGet('index')) == '/~core/intro/'
) {
return await core.globalSettingsSet('index', '/~core/ssb/');
}
});
main();