mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
13 lines
557 B
TypeScript
13 lines
557 B
TypeScript
// Sets up DFL, then loads start.ts which starts up the loader
|
|
(async () => {
|
|
console.debug('Setting up decky-frontend-lib...');
|
|
window.DFL = await import('decky-frontend-lib');
|
|
console.debug('Authenticating with Decky backend...');
|
|
window.deckyAuthToken = await fetch('http://127.0.0.1:1337/auth/token').then((r) => r.text());
|
|
console.debug('Connecting to Decky backend...');
|
|
window.DeckyBackend = new (await import('./wsrouter')).WSRouter();
|
|
await DeckyBackend.connect();
|
|
console.debug('Starting Decky!');
|
|
await import('./start');
|
|
})();
|