docs: Zusatzfunktionen (Kai, 25.06.2025) in TODO.md ergänzt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user