Skip to content

Commit

Permalink
fixed window location issue
Browse files Browse the repository at this point in the history
  • Loading branch information
babakamyljanovssw committed Dec 11, 2024
1 parent 8e39ab4 commit b000d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/withLocation/withURLLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Location } from '@reach/router';
import queryString from 'query-string';

let search =
typeof location !== 'undefined' && location.search
typeof window !== 'undefined' && window.location.search
? queryString.parse(window.location.search)
: {};

Expand Down

0 comments on commit b000d2c

Please sign in to comment.