chore: robohash set2
This commit is contained in:
parent
089c40d816
commit
9b3cc94d18
@ -469,7 +469,7 @@ export function kvToObject<T>(o: string, sep?: string) {
|
||||
}
|
||||
|
||||
export function defaultAvatar(input: string) {
|
||||
return `https://robohash.v0l.io/${input}.png`;
|
||||
return `https://robohash.v0l.io/${input}.png${IsHalloween() ? "?set=set2" : ""}`;
|
||||
}
|
||||
|
||||
export function isFormElement(target: HTMLElement): boolean {
|
||||
@ -479,3 +479,8 @@ export function isFormElement(target: HTMLElement): boolean {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
export const IsHalloween = () => {
|
||||
const now = new Date();
|
||||
return now.getMonth() === 9 && now.getDate() >= 17;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user