Skip to content

Commit

Permalink
fix: focus the window on first load
Browse files Browse the repository at this point in the history
  • Loading branch information
triyanox committed Jul 24, 2024
1 parent 9d54ff9 commit 32f86fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
import Synthesizer from '@/components/synth';
import { Card } from '@/components/ui/card';
import Link from 'next/link';
import { useEffect } from 'react';

const Page = () => {
useEffect(() => {
document.body.click();
}, []);

return (
<div className="min-h-screen max-w-3xl mx-auto flex items-center justify-center">
<div className="absolute top-8 left-8 p-4">
Expand Down

0 comments on commit 32f86fc

Please sign in to comment.