chore: update styles

This commit is contained in:
Steven
2023-09-23 01:25:08 +08:00
parent 3488cd04c0
commit b97fb13929
4 changed files with 25 additions and 15 deletions

View File

@@ -4,8 +4,12 @@ export const isNullorUndefined = (value: any) => {
return isNull(value) || isUndefined(value);
};
export function absolutifyLink(rel: string): string {
export const absolutifyLink = (rel: string): string => {
const anchor = document.createElement("a");
anchor.setAttribute("href", rel);
return anchor.href;
}
};
export const releaseGuard = () => {
return import.meta.env.MODE === "development";
};