//= require i18n
//= require i18n/embed
-window.onload = function () {
- if (navigator.languages) {
- I18n.locale = navigator.languages[0];
- } else if (navigator.language) {
- I18n.locale = navigator.language;
- }
+if (navigator.languages) {
+ I18n.locale = navigator.languages[0];
+} else if (navigator.language) {
+ I18n.locale = navigator.language;
+}
- var query = (window.location.search || '?').substr(1),
+window.onload = function () {
+ var query = (window.location.search || '?').slice(1),
args = {};
var pairs = query.split('&');
L.Control.OSMReportAProblem = L.Control.Attribution.extend({
options: {
position: 'bottomright',
- prefix: '<a href="http://www.openstreetmap.org/fixthemap?lat={x}&lon={y}&zoom={z}" target="_blank">'+I18n.t('javascripts.embed.report_problem')+'</a>'
+ prefix: '<a href="https://www.openstreetmap.org/fixthemap?lat={x}&lon={y}&zoom={z}" target="_blank">'+I18n.t('javascripts.embed.report_problem')+'</a>'
},
onAdd: function (map) {