From 123b8476e06053c8d0048ea8912e295d1563287c Mon Sep 17 00:00:00 2001 From: RetricSu Date: Tue, 3 Sep 2024 21:10:20 +0800 Subject: [PATCH] fix: fmt --- packages/demo/offckb.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/demo/offckb.config.ts b/packages/demo/offckb.config.ts index 423f8b2..b92f2c2 100644 --- a/packages/demo/offckb.config.ts +++ b/packages/demo/offckb.config.ts @@ -84,8 +84,8 @@ export function readEnvNetwork(): Network { // according to your frontend framework const defaultNetwork = "devnet"; let network = defaultNetwork; - if (typeof window != null) { - //@ts-ignore + if (typeof window !== "undefined") { + //@ts-expect-error "env" network = window.ENV.NETWORK; } if (!network) return defaultNetwork;