mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-04 12:40:10 +00:00
fix: custom code boolean variable
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user