Skip to content

Commit

Permalink
Merge patch commit
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 1, 2023
2 parents e4e82d6 + eea169a commit 79be93b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jeremyckahn/farmhand",
"version": "1.16.0",
"version": "1.16.1",
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 3 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export const features = Object.keys(process.env).reduce((acc, key) => {
return acc
}, {})

const searchParams = new URLSearchParams(window.location.search)
// Use optional chaining here because window.location will not be defined when
// this is running in a Node.js context.
const searchParams = new URLSearchParams(window.location?.search)

for (const key of searchParams.keys()) {
const matches = key.match(/enable_(.*)/)
Expand Down

1 comment on commit 79be93b

@vercel
Copy link

@vercel vercel bot commented on 79be93b May 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.