From 32df3335dfac1d8cd10a99c15830f4a4e4c68045 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 21 Nov 2022 23:06:57 +0100 Subject: don't leak the Thunderforest API key This was leftover code from before the tile-proxy times. --- fietsboek/templates/layout.jinja2 | 8 -------- 1 file changed, 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 %} -- cgit v1.2.3