Skip to content

Commit

Permalink
fix(docs): client-specific code execution in node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmessing committed Jul 27, 2024
1 parent 297133c commit 62ce44e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ interface UseBodyClassOptions {
}

export function useBodyClass(value: MaybeRefOrGetter<boolean>, options: UseBodyClassOptions): void {
if (typeof document === 'undefined') {
return
}

const { trueClass } = options
const { falseClass } = options

Expand Down

0 comments on commit 62ce44e

Please sign in to comment.