From bbc11c69c9cbdea269d25961318919249f1f2329 Mon Sep 17 00:00:00 2001 From: Saahil Date: Fri, 28 Jun 2024 23:48:40 -0400 Subject: [PATCH] screenshot & title --- public/index.html | 6 +++--- src/scripts/title.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 510eeb80..f3a6bef8 100644 --- a/public/index.html +++ b/public/index.html @@ -16,7 +16,7 @@ @@ -25,7 +25,7 @@ @@ -37,7 +37,7 @@ /> diff --git a/src/scripts/title.ts b/src/scripts/title.ts index ec49ef47..3cd5a4b0 100644 --- a/src/scripts/title.ts +++ b/src/scripts/title.ts @@ -10,7 +10,8 @@ export function runTitle() { } window.document.documentElement.className = "duration-500 ease-in-out " if (document.hasFocus()) { - document.title = title0 || "Saahild.com" + + document.title = title0?.toLowerCase() === "react app" ? "Saahild.com" : (title0 ?? "Saahild.com") window.document.documentElement.style.filter = "" } else { document.title = 'Come Back :('