[openstreetmap/openstreetmap-website] Support android intent uri for JOSM style remote control (#1478)

Simon Legner notifications at github.com
Tue Mar 31 22:59:25 UTC 2020


@simon04 commented on this pull request.



> +    },
+    Android: function() {
+        return /Android/i.test(navigator.userAgent);
+    },
+    BlackBerry: function() {
+        return /BlackBerry/i.test(navigator.userAgent);
+    },
+    iOS: function() {
+        return /iPhone|iPad|iPod/i.test(navigator.userAgent);
+    },
+    any: function() {
+        return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows());
+    }
+  };
+
+  function url() {

Alternatively, we could use `L.Browser.android`, see https://leafletjs.com/reference-1.6.0.html#browser

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1478#discussion_r401263575
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200331/fdbccd5b/attachment.htm>


More information about the rails-dev mailing list