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

Tom Hughes notifications at github.com
Tue Mar 7 22:52:42 UTC 2017


tomhughes 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() {

Fine, but call it `remoteEditUrl` or something and pass it the query string so the whole of the url logic can be in one place...

-- 
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_r104801923
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170307/d424b99c/attachment-0001.html>


More information about the rails-dev mailing list