Skip to content

Commit

Permalink
update: Fixed transition to support page using window.open() event
Browse files Browse the repository at this point in the history
* 支援ページへwindow.open()イベントを用いて遷移するように修正
  • Loading branch information
ryohidaka committed Jul 25, 2023
1 parent 8e78855 commit e0ec7c3
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions src/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ const Popup = () => {
})
}

const donationPageUrl = "https://pielotopica.booth.pm/items/4955538";
const openDonationPage = () => {
window.open(
"https://pielotopica.booth.pm/items/4955538",
"_blank",
"noreferrer"
);
};
return (
<>
<AppBar position="static" sx={{ minWidth: 400 }}>
Expand Down Expand Up @@ -99,14 +105,18 @@ const Popup = () => {
label={<Typography style={{ fontSize: 15 }}>Misskeyへの投稿にCWを設定する。</Typography>}
/>

<Link
href={donationPageUrl}
target="_blank"
rel="noopener"
underline="hover"
sx={{ display: "block", mt: 2 }}
> 開発の支援をお願いします! / Donation </Link>

<Typography
sx={{
display: "block",
color: "#1976d2",
mt: 2,
textDecoration: "none",
"&:hover": { textDecoration: "underline" },
}}
onClick={openDonationPage}
>
開発の支援をお願いします! / Donation
</Typography>
</Container>

</>
Expand Down

0 comments on commit e0ec7c3

Please sign in to comment.