aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-11-21 23:06:57 +0100
committerDaniel Schadt <kingdread@gmx.de>2022-11-21 23:06:57 +0100
commit32df3335dfac1d8cd10a99c15830f4a4e4c68045 (patch)
tree5c1da0572f3257b14f2cd3d8b6c0e8968b73d47e
parent5e3a9af1ddea90be2478ea69dae687c948532db1 (diff)
downloadfietsboek-32df3335dfac1d8cd10a99c15830f4a4e4c68045.tar.gz
fietsboek-32df3335dfac1d8cd10a99c15830f4a4e4c68045.tar.bz2
fietsboek-32df3335dfac1d8cd10a99c15830f4a4e4c68045.zip
don't leak the Thunderforest API key
This was leftover code from before the tile-proxy times.
-rw-r--r--fietsboek/templates/layout.jinja28
1 files changed, 0 insertions, 8 deletions
diff --git a/fietsboek/templates/layout.jinja2 b/fietsboek/templates/layout.jinja2
index bf30143..64fc8c1 100644
--- a/fietsboek/templates/layout.jinja2
+++ b/fietsboek/templates/layout.jinja2
@@ -23,14 +23,6 @@ const FRIENDS_URL = {{ request.route_url('json-friends') | tojson }};
const TILE_LAYERS = {{ embed_tile_layers(request) }};
const BASE_URL = {{ request.route_url('home') | tojson }};
const LOCALE = {{ request.localizer.locale_name.replace('_', '-') | tojson }};
-{% if request.registry.settings.get("thunderforest.api_key") %}
-{% set api_key = request.registry.settings.get("thunderforest.api_key") %}
-window.JB = window.JB || {};
-window.JB.GPX2GM = window.JB.GPX2GM || {};
-window.JB.GPX2GM.OSM_Cycle_Api_Key = {{ api_key | tojson }};
-window.JB.GPX2GM.OSM_Landscape_Api_Key = {{ api_key | tojson}};
-window.JB.GPX2GM.OSM_Outdoors_Api_Key = {{ api_key | tojson }};
-{% endif %}
</script>
</head>