From 198547778d11f342824ae7d5e6f324fba06ea869 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 25 Sep 2018 17:29:06 +0200 Subject: [PATCH 1/2] Use uglifier with no mungle option in order to fix leaflet in production --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 4bcbef198..9c120b8e9 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -28,7 +28,7 @@ Rails.application.configure do config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier + config.assets.js_compressor = Uglifier.new(mangle: false) # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed. From 90fb81af2b01e206d17d55e170736d2fb58d065e Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 25 Sep 2018 17:29:21 +0200 Subject: [PATCH 2/2] Load OSM tiles over https --- app/assets/javascripts/old_design/carte/carte.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/old_design/carte/carte.js b/app/assets/javascripts/old_design/carte/carte.js index f05fba794..1ae2bb8ee 100644 --- a/app/assets/javascripts/old_design/carte/carte.js +++ b/app/assets/javascripts/old_design/carte/carte.js @@ -2,7 +2,7 @@ var LON = '2.428462'; var LAT = '46.538192'; function initCarto() { - OSM = L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { + OSM = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { attribution: '© OpenStreetMap' });