]> git.openstreetmap.org Git - rails.git/commitdiff
Send 5% of users tiles over https as a test
authorTom Hughes <tom@compton.nu>
Wed, 5 Feb 2014 18:38:36 +0000 (18:38 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 5 Feb 2014 18:38:36 +0000 (18:38 +0000)
app/assets/javascripts/application.js

index 7072b7c6be8a40dce9a3262d541f780b07d82b17..dd44ea1078eac4c41a3bcc812d3da3f2590562b0 100644 (file)
@@ -138,3 +138,7 @@ $(document).ready(function () {
     $("header").toggleClass("closed");
   });
 });
+
+if (Math.random() * 100 < 5) {
+  L.OSM.Mapnik.prototype.options.url = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
+}