X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2333c603e1ad3352109a05150f2c47ad468f7ef..ebcb038c1c27695790f81900204d4c8589b2dfbb:/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 %> };