projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77fee91
)
Preserve protocol in standard links
author
Tom Hughes
<tom@compton.nu>
Sat, 18 Feb 2017 12:18:34 +0000
(12:18 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sat, 18 Feb 2017 12:18:34 +0000
(12:18 +0000)
app/assets/javascripts/leaflet.map.js
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/leaflet.map.js
b/app/assets/javascripts/leaflet.map.js
index 1edb1ae4b9d147148405759d98a82be64fe45d78..e499795beb85ef0c9ec57c9d12517057d474f525 100644
(file)
--- a/
app/assets/javascripts/leaflet.map.js
+++ b/
app/assets/javascripts/leaflet.map.js
@@
-107,7
+107,7
@@
L.OSM.Map = L.Map.extend({
params.mlon = latLng.lng.toFixed(precision);
}
- var url =
'http
://' + OSM.SERVER_URL + '/',
+ var url =
window.location.protocol + '
://' + OSM.SERVER_URL + '/',
query = querystring.stringify(params),
hash = OSM.formatHash(this);