Skip to content

Commit

Permalink
fix: refactor getInjectedArgentX
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussone committed Oct 31, 2024
1 parent 305bd11 commit c557c71
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/connectors/argent/helpers/getInjectedArgentX.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { StarknetWindowObject } from "@starknet-io/types-js"

export function getInjectedArgentX() {
if (typeof window === "undefined") {
return undefined
if (typeof window !== "undefined") {
return window?.starknet_argentX as
| (StarknetWindowObject & {
isInAppBrowser: boolean
})
| undefined
}
return window?.starknet_argentX as
| (StarknetWindowObject & {
isInAppBrowser: boolean
})
| undefined
return undefined
}

0 comments on commit c557c71

Please sign in to comment.