diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-05 16:58:56 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-06 11:08:50 +0200 |
| commit | ad528c706efb46b415e460838f4562241a2d10ba (patch) | |
| tree | cc82327ebfa65d9db37baeb077a670fdc995e32f /searx/templates/simple/result_templates/map.html | |
| parent | 48c806954eecc242227ad9868eabe03d1d415621 (diff) | |
[fix] make result template map more CSP compliant - simple & oscar
Add osm-map-box in::
searx/static/themes/__common__/less/result_templates.less
Replaced sty= in files::
./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div>
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/result_templates/map.html')
| -rw-r--r-- | searx/templates/simple/result_templates/map.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/result_templates/map.html b/searx/templates/simple/result_templates/map.html index 8b08bda6e..dc6a62010 100644 --- a/searx/templates/simple/result_templates/map.html +++ b/searx/templates/simple/result_templates/map.html @@ -45,7 +45,7 @@ {{- result_sub_footer(result, proxify) -}} {% if (result.latitude and result.longitude) or result.boundingbox -%} - <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div> + <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" class="osm-map-box"></div></div> {%- endif %} {{- result_footer(result) }} |