From a698bd4ed92cbaffebcfe90b1ea90e6d4af6219d Mon Sep 17 00:00:00 2001 From: Carnun Marcus-Page Date: Mon, 15 Aug 2022 13:34:44 +0100 Subject: [PATCH] Fix bookmarklet share link (#35) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason, Twitter (and possibly other sites!) cut closing parens from the "Copy this link to share ⤴️" link. So a quick-and-dirty fix is to just append a bit of whitespace. A little more context (with pictures): https://twitter.com/CarnunMP/status/1559148858118111234 --- resources/public/cljs/bookmarklet.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/public/cljs/bookmarklet.cljs b/resources/public/cljs/bookmarklet.cljs index 0f9eb15..6fbe791 100644 --- a/resources/public/cljs/bookmarklet.cljs +++ b/resources/public/cljs/bookmarklet.cljs @@ -134,6 +134,7 @@ [:br] [(fn [] [:a {:href (str "?name=" (js/encodeURIComponent @*bookmark-name) - "&code=" (js/encodeURIComponent @*code))} "Copy this link to share ⤴️"])]])) + "&code=" (js/encodeURIComponent @*code) + " ")} "Copy this link to share ⤴️"])]])) (rdom/render [workspace] (.getElementById js/document "app"))