Skip to content

Commit

Permalink
feat: focus iframe window when plugin is first loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
lublagg committed Nov 14, 2024
1 parent 349d572 commit 39ed58e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ import "./index.scss";
const container = document.getElementById("app");
if (container) {
const root = createRoot(container);

window.addEventListener("load", () => {
window.focus();
});

root.render(<App />);
}

0 comments on commit 39ed58e

Please sign in to comment.