X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bab39572a17146d5b6e696f0ba584a89daac10c7..7364f40fca5c87bda71f80b58c3403dcbc24fab9:/app/assets/javascripts/embed.js.erb 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('&');