clean up some stuff, moved around other

This commit is contained in:
Maieul BOYER 2025-12-22 12:19:32 +01:00 committed by Maix0
parent 117b535962
commit 5615049a15
16 changed files with 80 additions and 84 deletions

View file

@ -6,3 +6,8 @@ export function escapeHTML(str: string): string {
export function isNullish<T>(v: T | undefined | null): v is (null | undefined) {
return v === null || v === undefined;
}
// MAKE SURE YOU DO WANT TO CALL THIS FUNCTION
export function ensureWindowState() {
window.__state = window.__state ?? {};
}