From 6b843cc15826b521ddf404e5b3a2f7ce91bb8648 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 5 Feb 2014 18:38:36 +0000 Subject: [PATCH] Send 5% of users tiles over https as a test --- app/assets/javascripts/application.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 7072b7c6b..dd44ea107 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -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'; +} -- 2.39.5