X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2333c603e1ad3352109a05150f2c47ad468f7ef..7c5d0fff3d8aab23b17e32aa65f1f9e0beb95d3c:/app/assets/javascripts/globals.js.erb diff --git a/app/assets/javascripts/globals.js.erb b/app/assets/javascripts/globals.js.erb index b4d2caf54..3c3bd92a7 100644 --- a/app/assets/javascripts/globals.js.erb +++ b/app/assets/javascripts/globals.js.erb @@ -1,4 +1,9 @@ OSM = { +<% if defined?(PIWIK_LOCATION) and defined?(PIWIK_SITE) %> + PIWIK_LOCATION: <%= PIWIK_LOCATION.to_json %>, + PIWIK_SITE: <%= PIWIK_SITE.to_json %>, +<% end %> MAX_REQUEST_AREA: <%= MAX_REQUEST_AREA.to_json %>, - SERVER_URL: <%= SERVER_URL.to_json %> + SERVER_URL: <%= SERVER_URL.to_json %>, + API_VERSION: <%= API_VERSION.to_json %> };