diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-04-01 19:08:09 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-04-01 19:08:09 -0400 |
| commit | e17d8c7c4e9cb737aac3db6e1c772e2a3da89962 (patch) | |
| tree | 6a7922bb495380ab4a1ca95a949f8efb6752a43d /src/frontend/components/MastodonShareButton.tsx | |
| parent | ec368169fb4c7782834c626d77f6afab7924cd05 (diff) | |
| download | xesite-e17d8c7c4e9cb737aac3db6e1c772e2a3da89962.tar.xz xesite-e17d8c7c4e9cb737aac3db6e1c772e2a3da89962.zip | |
fix
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'src/frontend/components/MastodonShareButton.tsx')
| -rw-r--r-- | src/frontend/components/MastodonShareButton.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/components/MastodonShareButton.tsx b/src/frontend/components/MastodonShareButton.tsx index 71395b3..2de0173 100644 --- a/src/frontend/components/MastodonShareButton.tsx +++ b/src/frontend/components/MastodonShareButton.tsx @@ -51,7 +51,7 @@ ${series ? "#" + series + " " : ""}${ {tootBox} <br /> <button - onClick={(() => { + onclick={() => { let instanceURL = instanceBox.value; if (!instanceURL.startsWith("https://")) { @@ -66,7 +66,7 @@ ${series ? "#" + series + " " : ""}${ }); console.log({ text, mastodonURL }); window.open(mastodonURL, "_blank"); - })()} + }} > Share </button> |
