Skip to content

Commit

Permalink
docs: use target:_blank for links in storybook control table
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Jan 17, 2025
1 parent e453c54 commit 4ef6c02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/stories/drive-picker.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ window.addEventListener("DOMContentLoaded", () => {
resizeObserver.observe(pickerDialog);
}
}, 50);
});

for (const a of document.querySelectorAll("a")) {
if (a.href.startsWith("https://")) {
a.target = "_blank";
}
}
});
const meta: Meta = {
component: "drive-picker",
argTypes: {
Expand Down

0 comments on commit 4ef6c02

Please sign in to comment.