Skip to content

Commit

Permalink
Final fix of #749
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Nov 6, 2019
1 parent e524060 commit 38bd876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useTitle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ function useTitle(title: string) {
}
}

export default document ? useTitle : (_title: string) => {};
export default typeof document !== 'undefined' ? useTitle : (_title: string) => {};

0 comments on commit 38bd876

Please sign in to comment.