Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu committed Sep 3, 2024
1 parent 815c229 commit 123b847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/demo/offckb.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 123b847

Please sign in to comment.