docs: Zusatzfunktionen (Kai, 25.06.2025) in TODO.md ergänzt

This commit is contained in:
ISA
2025-06-25 11:42:42 +02:00
parent ca2a0cb00d
commit 2fcd0755a4
29 changed files with 369 additions and 122 deletions

View File

@@ -7,7 +7,10 @@ export async function checkSession(): Promise<boolean> {
if (typeof window === "undefined") return false;
return window[expectedGlobalVar] !== undefined;
return (
(window as unknown as Record<string, unknown>)[expectedGlobalVar] !==
undefined
);
} catch (error) {
return false;
}

View File

@@ -54,13 +54,13 @@ export async function loadWindowVariables(): Promise<{
const win = window as unknown as CustomWindow;
const variablesObj: Record<string, any> = requiredVars.reduce(
(acc, variable) => {
(acc: Record<string, any>, variable: string) => {
if (win[variable] !== undefined) {
acc[variable.replace("win_", "")] = win[variable];
}
return acc;
},
{}
{} as Record<string, any>
);
const kueData =