chg: Add sri to stats page

pull/302/head
Raphaël Vinot 2021-12-13 17:02:25 +01:00
parent ec5563337b
commit 83f6674dca
1 changed files with 6 additions and 2 deletions

View File

@ -73,8 +73,12 @@
{% block scripts %}
{{ super() }}
<script src='{{ url_for('static', filename='d3.v6.min.js') }}'></script>
<script src='{{ url_for('static', filename='stats_graph.js') }}'></script>
<script src='{{ url_for('static', filename='d3.v7.min.js') }}'
integrity="{{get_sri('static', 'd3.v7.min.js')}}"
crossorigin="anonymous"></script>
<script src='{{ url_for('static', filename='stats_graph.js') }}'
integrity="{{get_sri('static', 'stats_graph.js')}}"
crossorigin="anonymous"></script>
{% endblock %}
{% block styles %}