fix: refactor some stuff
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user