refactor: use document.title
This commit is contained in:
parent
8d7a99da7f
commit
c3efe83de0
1 changed files with 4 additions and 3 deletions
|
@ -41,8 +41,9 @@ const baseURL = "https://ayo.ayco.io";
|
||||||
|
|
||||||
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
||||||
<script>
|
<script>
|
||||||
const title = document.querySelector("title");
|
const title = document.title;
|
||||||
if (title && !title.textContent?.includes("Ayo Ayco"))
|
document.title = title?.includes("Ayo Ayco")
|
||||||
title.textContent = title.textContent + " | Ayo Ayco";
|
? title
|
||||||
|
: `${title} | Ayo Ayco`;
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue