chore: robohash set2

This commit is contained in:
Kieran 2023-10-17 22:31:18 +01:00
parent 089c40d816
commit 9b3cc94d18
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -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;
};