fix: refactor some stuff

This commit is contained in:
Max Richter
2025-10-31 17:34:06 +01:00
parent 5001fe62c1
commit de0b2e7a8f
6 changed files with 5 additions and 18 deletions

View File

@@ -97,12 +97,6 @@ export function getCookie(name: string): string | null {
})[0] || null;
}
const resourcePrefixes = Object.values(resources).map((v) => v.prefix).filter(
(s) => s.length > 2,
);
export const isLocalImage = (src: string) =>
resourcePrefixes.some((p) => src.startsWith(p));
export const isString = (input: string | undefined): input is string => {
return typeof input === "string";
};