diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 94c6bb6..3d1e70e 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -37,6 +37,10 @@ function Header() { // @ts-expect-error CustomDesc is a global variable const customDesc = window.CustomDesc || t("nezha") + const customBackgroundImage = + // @ts-expect-error CustomBackgroundImage is a global variable + (window.CustomBackgroundImage as string) !== "" ? window.CustomBackgroundImage : undefined + useEffect(() => { const link = document.querySelector("link[rel*='icon']") || document.createElement("link") // @ts-expect-error set link.type @@ -79,7 +83,9 @@ function Header() {