Skip to content

Commit bfc1986

Browse files
author
Aleksandar Cakalic
committed
fix: case when window is undefined in getInjectedArgentX
1 parent a2d5423 commit bfc1986

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/connectors/argent/helpers/getInjectedArgentX.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import type { StarknetWindowObject } from "@starknet-io/types-js"
22

33
export function getInjectedArgentX() {
4+
if (typeof window === "undefined") {
5+
return undefined
6+
}
47
return window?.starknet_argentX as
58
| (StarknetWindowObject & {
69
isInAppBrowser: boolean

0 commit comments

Comments
 (0)