Skip to content

Commit

Permalink
fix: check with typeof (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
horsefacts committed Jan 27, 2024
1 parent 90e0966 commit df57823
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/auth-kit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @farcaster/auth-kit

## 0.1.4

### Patch Changes

- fix: check using typeof

## 0.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@farcaster/auth-kit",
"version": "0.1.3",
"version": "0.1.4",
"type": "module",
"main": "./dist/auth-kit.js",
"types": "./dist/auth-kit.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface AuthKitContextValues {
onSignOut: () => void;
}

const domainDefaults = window?.location ? {
const domainDefaults = (typeof window !== 'undefined' && window?.location) ? {
domain: window.location.host,
siweUri: window.location.href
} : {};
Expand Down

0 comments on commit df57823

Please sign in to comment.