We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getInjectedArgentX
1 parent a2d5423 commit 8943d3bCopy full SHA for 8943d3b
src/connectors/argent/helpers/getInjectedArgentX.ts
@@ -1,6 +1,9 @@
1
import type { StarknetWindowObject } from "@starknet-io/types-js"
2
3
export function getInjectedArgentX() {
4
+ if (typeof window === "undefined") {
5
+ return undefined
6
+ }
7
return window?.starknet_argentX as
8
| (StarknetWindowObject & {
9
isInAppBrowser: boolean
0 commit comments