Skip to content

Commit

Permalink
Merge pull request #2 from concord-consortium/188522189-focus-plugin-…
Browse files Browse the repository at this point in the history
…on-first-load

Focus iframe window when plugin is first loaded. (PT-188522189)
  • Loading branch information
lublagg authored Nov 18, 2024
2 parents 3617c66 + 39ed58e commit 49180bb
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 49180bb

Please sign in to comment.