Make scripts modules
This commit is contained in:
parent
fdd22e00df
commit
20bcbb362f
2 changed files with 2 additions and 4 deletions
|
@ -53,9 +53,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
<script type="module">
|
||||
const iframe = document.querySelector("#iframe");
|
||||
|
||||
iframe.addEventListener("load", () => {
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
{% block scripts %}
|
||||
<script src="{{ get_url(path='leaflet/leaflet.js') | safe }}?v={{ now(timestamp=true) }}"></script>
|
||||
<script>
|
||||
<script type="module">
|
||||
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) | safe }}";
|
||||
|
||||
var center = L.latLng(50.05427, 7.11814);
|
||||
|
|
Loading…
Reference in a new issue