X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..87ea9fcb021b9b67a79d35cb719a064a34a7784d:/app/assets/javascripts/embed.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index d3b1ad4b2..c92be4515 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -12,7 +12,7 @@ window.onload = function () { I18n.locale = navigator.language; } - var query = (window.location.search || '?').substr(1), + var query = (window.location.search || '?').slice(1), args = {}; var pairs = query.split('&');