Skip to content

Commit

Permalink
feat: only allow activity on main domain
Browse files Browse the repository at this point in the history
  • Loading branch information
CaliCastle committed May 21, 2023
1 parent 44055c4 commit b58be6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/(main)/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export function Activity() {
const { data } = useQuery<{ app: string }>(
'activity',
() => fetch('/api/activity').then((res) => res.json()),
{ refetchInterval: 2000 }
{
refetchInterval: 2000,
enabled: new URL(window.location.href).hostname === 'cali.so',
}
)
const [open, setOpen] = React.useState(false)

Expand Down

0 comments on commit b58be6d

Please sign in to comment.