fix: custom code boolean variable

This commit is contained in:
hamster1963 2024-12-18 11:46:07 +08:00
parent 45dc3f7935
commit a00df7ea04
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
const showFlag = true const showFlag = true
// @ts-expect-error ShowNetTransfer is a global variable // @ts-expect-error ShowNetTransfer is a global variable
const showNetTransfer = window.ShowNetTransfer === "true" const showNetTransfer = window.ShowNetTransfer as boolean
const parsedData = parsePublicNote(public_note) const parsedData = parsePublicNote(public_note)

View File

@ -28,7 +28,7 @@ export default function ServerOverview({
const { status, setStatus } = useStatus() const { status, setStatus } = useStatus()
// @ts-expect-error DisableAnimatedMan is a global variable // @ts-expect-error DisableAnimatedMan is a global variable
const disableAnimatedMan = window.DisableAnimatedMan === "true" const disableAnimatedMan = window.DisableAnimatedMan as boolean
// @ts-expect-error CustomIllustration is a global variable // @ts-expect-error CustomIllustration is a global variable
const customIllustration = window.CustomIllustration || "/animated-man.webp" const customIllustration = window.CustomIllustration || "/animated-man.webp"