mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 09:31:55 +08:00
fix: custom code boolean variable
This commit is contained in:
parent
45dc3f7935
commit
a00df7ea04
@ -28,7 +28,7 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
|
||||
|
||||
const showFlag = true
|
||||
// @ts-expect-error ShowNetTransfer is a global variable
|
||||
const showNetTransfer = window.ShowNetTransfer === "true"
|
||||
const showNetTransfer = window.ShowNetTransfer as boolean
|
||||
|
||||
const parsedData = parsePublicNote(public_note)
|
||||
|
||||
|
@ -28,7 +28,7 @@ export default function ServerOverview({
|
||||
const { status, setStatus } = useStatus()
|
||||
|
||||
// @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
|
||||
const customIllustration = window.CustomIllustration || "/animated-man.webp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user