]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/embed.js.erb
Merge remote-tracking branch 'upstream/pull/3505'
[rails.git] / app / assets / javascripts / embed.js.erb
index d3b1ad4b28e8bdeccf7bc7d19d848e0294daef78..c92be45155133a245a90699d912d69d5b24fe4c0 100644 (file)
@@ -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('&');