[openstreetmap/openstreetmap-website] Add social sharing functionality (PR #4985)

Emin Kocan notifications at github.com
Thu Aug 22 06:44:09 UTC 2024


@kcne commented on this pull request.



> @@ -0,0 +1,27 @@
+// Opening pop-ups with share URL
+function openShareUrl(url, initialWidth = 640, initialHeight = 480) {
+  if (typeof url !== "string" || !url.startsWith("http")) {
+    console.error("Invalid URL"); // Consider removing this line if console warnings should be avoided.

In current state it is not really possible, since all the urls are hardcoded. Removing this for now.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4985#discussion_r1726441285
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4985/review/2253627055 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240821/6f0dceca/attachment.htm>


More information about the rails-dev mailing list