Skip to content

Commit 91909fc

Browse files
committedJan 8, 2025
Remove location global guard
1 parent 07358d1 commit 91909fc

File tree

1 file changed

+1
-2
lines changed
  • packages/docs/content/docs/community-adapters

1 file changed

+1
-2
lines changed
 

Diff for: ‎packages/docs/content/docs/community-adapters/waku.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ function useNuqsAdapter() {
2727
const searchParams = new URLSearchParams(query);
2828
const updateUrl = (search: URLSearchParams, options: AdapterOptions) => {
2929
const query = renderQueryString(search);
30-
const hash = typeof location !== "undefined" ? location.hash : "";
31-
const url = path + query + hash;
30+
const url = path + query + location.hash;
3231
if (options.shallow) {
3332
options.history === "push"
3433
? history.pushState(null, "", url)

0 commit comments

Comments
 (0)