]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/mapquest.js
Avoid mixed content warnings for the MapQuest logo
[rails.git] / app / assets / javascripts / index / directions / mapquest.js
index 935a1ca4c38e9c8dcdaf9245ede8d336bb0077a9..112d17bcb86b953f0e3e2b2c6e5f7e9aba0b61e0 100644 (file)
@@ -28,7 +28,7 @@ function MapQuestEngine(id, vehicleParam) {
 
   return {
     id: id,
 
   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) {
     draggable: false,
 
     getRoute: function (points, callback) {