1
0
Fork 0

Make scripts modules

This commit is contained in:
Mo 2023-11-22 03:05:09 +01:00
parent fdd22e00df
commit 20bcbb362f
2 changed files with 2 additions and 4 deletions

View file

@ -53,9 +53,7 @@
{% endblock %}
{% block scripts %}
<script>
"use strict";
<script type="module">
const iframe = document.querySelector("#iframe");
iframe.addEventListener("load", () => {

View file

@ -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);