aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/scoreToEmoji.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/helpers/scoreToEmoji.ts b/src/helpers/scoreToEmoji.ts
index 4e0df54..fb71229 100644
--- a/src/helpers/scoreToEmoji.ts
+++ b/src/helpers/scoreToEmoji.ts
@@ -4,7 +4,7 @@ import { appName } from "../constants";
export async function scoreToEmoji(guesses: GuessType[]): Promise<string> {
const msInDay = 24 * 60 * 60 * 1000;
const today = new Date();
- const startDate = new Date(import.meta.env.VITE_START_DATE);
+ const startDate = new Date(import.meta.env.VITE_START_DATE || today.toISOString());
const currentPageUrl = window.location.href;
const index =
Math.floor(
@@ -19,7 +19,10 @@ export async function scoreToEmoji(guesses: GuessType[]): Promise<string> {
skip: "⬜",
empty: "⬛️",
};
- const prefix = `${appName} - #${index}`;
+ let prefix = `${appName} (Daily Heardle) - #${index}`;
+ if (currentPageUrl.endsWith("mv")) {
+ prefix = `${appName} (Daily MV) - #${index}`;
+ }
let scoreEmoji = "";
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage