From 9b3cc94d18ed5e47fb39e9eee79de16a2c23e02d Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 17 Oct 2023 22:31:18 +0100 Subject: [PATCH] chore: robohash set2 --- packages/app/src/SnortUtils/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/app/src/SnortUtils/index.ts b/packages/app/src/SnortUtils/index.ts index a78bdb5d8..64a478c87 100644 --- a/packages/app/src/SnortUtils/index.ts +++ b/packages/app/src/SnortUtils/index.ts @@ -469,7 +469,7 @@ export function kvToObject(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; +};