Compare commits

...

2 Commits

Author SHA1 Message Date
Oliver Booth 869ee77446
Merge branch 'main' into feature/admin
.NET / Build & Test (push) Failing after 46s Details
2024-03-02 05:32:45 +00:00
Oliver Booth 5fae03b483
fix: null check headshot
.NET / Build & Test (push) Successful in 1m29s Details
2024-03-02 05:32:34 +00:00
1 changed files with 26 additions and 24 deletions

View File

@ -107,6 +107,7 @@ declare const Prism: any;
let avatarType = 0;
const headshot = document.getElementById("index-headshot") as HTMLImageElement;
if (headshot) {
headshot.addEventListener("click", (ev: MouseEvent) => {
if (avatarType === 0) {
headshot.classList.add("headshot-spin", "headshot-spin-start");
@ -134,4 +135,5 @@ declare const Prism: any;
}, 400);
}
});
}
})();