This repository has been archived on 2025-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
trafficcue-client/src/main.ts
Jannik f5e1e23cdd
Some checks failed
TrafficCue CI / check (push) Failing after 1m58s
TrafficCue CI / build-android (push) Has been cancelled
TrafficCue CI / build (push) Has started running
feat: improve OIDC login flow and stores handling
2025-09-29 18:54:12 +02:00

16 lines
371 B
TypeScript

import { mount } from "svelte";
import "./app.css";
import App from "./App.svelte";
import OIDCCallback from "./OIDCCallback.svelte";
import { trySync } from "$lib/services/stores.svelte";
const app = mount(location.href.includes("/oidc") ? OIDCCallback : App, {
target: document.getElementById("app")!,
});
(async () => {
await trySync();
})();
export default app;