]> git.openstreetmap.org Git - rails.git/commitdiff
Avoid mixed content warnings for the MapQuest logo
authorTom Hughes <tom@compton.nu>
Mon, 16 Feb 2015 21:48:08 +0000 (21:48 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 16 Feb 2015 21:48:08 +0000 (21:48 +0000)
app/assets/javascripts/index/directions/mapquest.js

index 935a1ca4c38e9c8dcdaf9245ede8d336bb0077a9..112d17bcb86b953f0e3e2b2c6e5f7e9aba0b61e0 100644 (file)
@@ -28,7 +28,7 @@ function MapQuestEngine(id, vehicleParam) {
 
   return {
     id: id,
-    creditline: '<a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">',
+    creditline: '<a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="' + document.location.protocol + '//developer.mapquest.com/content/osm/mq_logo.png">',
     draggable: false,
 
     getRoute: function (points, callback) {