Skip to content

Commit

Permalink
fix: Debug logic
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jan 14, 2024
1 parent 7040976 commit 801ee87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuqs/src/debug.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// todo: Remove check for `next-usequerystate` in v2
const enabled =
(typeof localStorage === 'object' &&
(localStorage.getItem('debug')?.includes('next-usequerystate') ??
localStorage.getItem('debug')?.includes('nuqs'))) ??
(localStorage.getItem('debug')?.includes('next-usequerystate') ||
localStorage.getItem('debug')?.includes('nuqs'))) ||
false

export function debug(message: string, ...args: any[]) {
Expand Down

0 comments on commit 801ee87

Please sign in to comment.