Skip to content

Commit

Permalink
Remove location global guard
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarscher committed Jan 8, 2025
1 parent 07358d1 commit 91909fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/docs/content/docs/community-adapters/waku.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ function useNuqsAdapter() {
const searchParams = new URLSearchParams(query);
const updateUrl = (search: URLSearchParams, options: AdapterOptions) => {
const query = renderQueryString(search);
const hash = typeof location !== "undefined" ? location.hash : "";
const url = path + query + hash;
const url = path + query + location.hash;
if (options.shallow) {
options.history === "push"
? history.pushState(null, "", url)
Expand Down

0 comments on commit 91909fc

Please sign in to comment.