| 
									
										
										
										
											2025-05-21 18:48:29 -04:00
										 |  |  | import * as tfrpc from '/tfrpc.js'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-21 18:08:08 -04:00
										 |  |  | async function main() { | 
					
						
							|  |  |  | 	await app.setDocument(utf8Decode(getFile('index.html'))); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-21 18:48:29 -04:00
										 |  |  | tfrpc.register(async function complete() { | 
					
						
							| 
									
										
										
										
											2025-06-16 22:26:23 -04:00
										 |  |  | 	if ( | 
					
						
							|  |  |  | 		core.user?.credentials?.permissions?.administration && | 
					
						
							|  |  |  | 		(await core.globalSettingsGet('index')) == '/~core/intro/' | 
					
						
							|  |  |  | 	) { | 
					
						
							| 
									
										
										
										
											2025-05-21 18:48:29 -04:00
										 |  |  | 		return await core.globalSettingsSet('index', '/~core/ssb/'); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-21 18:20:01 -04:00
										 |  |  | main(); |