X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..139ccef2dd9af4188065eb55a5d74ccb0aadda76:/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('&');