Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion leaflet/templates/leaflet/_leaflet_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load static %}
{% if creatediv %}<div id="{{ name }}" class="leaflet-container-default"></div>{% endif %}

<script {% if csp_nonce %}nonce="{{ csp_nonce }}"{% endif %}>
<script nonce="{{ csp_nonce }}">
(function () {

function loadmap() {
Expand Down
4 changes: 2 additions & 2 deletions leaflet/templates/leaflet/widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
{{ FORCE_IMAGE_PATH|json_script:"force-img-path" }}
{{ reset_view_icon|json_script:"Control-ResetView-ICON" }}

<style {% if csp_nonce %}nonce="{{ csp_nonce }}"{% endif %}>
<style nonce="{{ csp_nonce }}">
{% block map_css %}
{% if map_width and map_height %}#{{ id_map }} { width: {{ map_width|unlocalize }}; height: {{ map_height|unlocalize }}; }{% endif %}
{% if not display_raw %}#{{ id_css }} { display: none; }{% endif %}
{% endblock map_css %}
</style>

<script {% if csp_nonce %}nonce="{{ csp_nonce }}"{% endif %}>
<script nonce="{{ csp_nonce }}">
{% block vars %}var {{ module }} = {};
{{ module }}.fieldid = '{{ id_css }}';
{{ module }}.modifiable = {{ modifiable|yesno:"true,false" }};
Expand Down